Commit bb856ffa authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

remove-shoulda-matchers

parent 4d98a122
......@@ -45,8 +45,6 @@ group :development, :test do
gem 'pry-rails'
gem 'rubocop', require: false
gem 'selenium-webdriver'
gem 'shoulda', '~> 3.5'
gem 'shoulda-matchers', '~> 2.0'
end
group :development do
......
......@@ -281,12 +281,6 @@ GEM
childprocess (~> 0.5)
rubyzip (~> 1.0)
websocket (~> 1.0)
shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.2.2)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
simple_form (3.4.0)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
......@@ -381,8 +375,6 @@ DEPENDENCIES
rubocop
sass-rails!
selenium-webdriver
shoulda (~> 3.5)
shoulda-matchers (~> 2.0)
simple_form
slim-rails
spring
......
require 'test_helper'
class ClientTest < ActiveSupport::TestCase
context 'associations' do
should have_many(:language_skills)
should have_many(:relatives)
should have_many(:schedules)
should belong_to(:user)
end
context 'validations' do
should validate_presence_of(:first_name)
should validate_presence_of(:last_name)
end
def setup
@client = create :client, :with_relatives, :with_language_skills
end
......
require 'test_helper'
class LanguageSkillTest < ActiveSupport::TestCase
context 'associations' do
should belong_to(:client)
end
end
require 'test_helper'
class RelativeTest < ActiveSupport::TestCase
context "associations" do
should belong_to(:client)
end
end
require 'test_helper'
class ScheduleTest < ActiveSupport::TestCase
context 'associations' do
should belong_to(:client)
end
end
......@@ -59,10 +59,6 @@ class UserTest < ActiveSupport::TestCase
refute @user_as_department_manager.social_worker?
end
context 'associations' do
should have_many(:clients)
end
test 'record still exists after deletion' do
user = create :user, :with_profile, role: 'social_worker'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment