shoulda-matchers 1.5.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile.lock +2 -2
  3. data/NEWS.md +12 -0
  4. data/README.md +0 -11
  5. data/features/rails_integration.feature +6 -8
  6. data/gemfiles/3.0.gemfile.lock +2 -2
  7. data/gemfiles/3.1.gemfile.lock +2 -2
  8. data/gemfiles/3.2.gemfile.lock +2 -2
  9. data/lib/shoulda/matchers/action_controller.rb +0 -4
  10. data/lib/shoulda/matchers/active_model.rb +0 -2
  11. data/lib/shoulda/matchers/active_record.rb +0 -1
  12. data/lib/shoulda/matchers/integrations/rspec.rb +0 -8
  13. data/lib/shoulda/matchers/integrations/test_unit.rb +0 -23
  14. data/lib/shoulda/matchers/version.rb +1 -1
  15. data/shoulda-matchers.gemspec +1 -1
  16. data/spec/spec_helper.rb +0 -2
  17. data/spec/support/controller_builder.rb +0 -24
  18. metadata +19 -70
  19. data/lib/shoulda/matchers/action_controller/assign_to_matcher.rb +0 -130
  20. data/lib/shoulda/matchers/action_controller/respond_with_content_type_matcher.rb +0 -83
  21. data/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb +0 -121
  22. data/lib/shoulda/matchers/action_mailer.rb +0 -22
  23. data/lib/shoulda/matchers/action_mailer/have_sent_email_matcher.rb +0 -260
  24. data/lib/shoulda/matchers/active_model/validate_format_of_matcher.rb +0 -108
  25. data/lib/shoulda/matchers/active_record/query_the_database_matcher.rb +0 -111
  26. data/lib/shoulda/matchers/independent.rb +0 -9
  27. data/lib/shoulda/matchers/independent/delegate_matcher.rb +0 -134
  28. data/spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb +0 -66
  29. data/spec/shoulda/matchers/action_controller/respond_with_content_type_matcher_spec.rb +0 -31
  30. data/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb +0 -142
  31. data/spec/shoulda/matchers/action_mailer/have_sent_email_spec.rb +0 -324
  32. data/spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb +0 -75
  33. data/spec/shoulda/matchers/active_record/query_the_database_matcher_spec.rb +0 -45
  34. data/spec/shoulda/matchers/independent/delegate_matcher_spec.rb +0 -204
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OWMwNTNlMjgwZTMwZGU1ZDFmMjdhYTY3MjU2NDNiMGNhNjQwNjZhMw==
5
+ data.tar.gz: !binary |-
6
+ YjM1NmVhYTc5YzYwY2NhNzFmZmM0Yjk0YjM0ODRhZDJkZTQyMThiNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MTUyNjY4M2RjMjM1NTQ0ZWU5M2RiNDUwYTZhOTUzNGEyYzIyNzAyNDY4MWQ1
10
+ ZTFjMGJlMzgxY2NhY2U0OTgwMTI2MjlhYTY3MTU0ZjlhMzk0ZDIzYmVhMjdj
11
+ NDkzOTU5ZjI2NWQxZTZmNzVlZWVmMTYxZTNjNzAzZjkzMzc4MTU=
12
+ data.tar.gz: !binary |-
13
+ ODNhMDRhMjBkYWE5OTkzNzUwNTkzYmE0MmE2OWM5MzgwODBkOTIwZGQ4ZTAz
14
+ OWJhNDA2MzI3MmE4NmYzNzFmYjAxNjhlYzFhMjAxOWI5Y2E1ZDQxMDE4MTI2
15
+ NDRlNmI0ZmI0ODM5NzA3MzJkZDVmMzJlNzQ1YzljNWNhMWZhOTg=
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shoulda-matchers (1.5.6)
4
+ shoulda-matchers (2.0.0)
5
5
  activesupport (>= 3.0.0)
6
- bourne (~> 1.3)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -134,6 +133,7 @@ DEPENDENCIES
134
133
  activerecord-jdbcsqlite3-adapter
135
134
  appraisal (~> 0.4)
136
135
  aruba
136
+ bourne (~> 1.3)
137
137
  bundler (~> 1.1)
138
138
  cucumber (~> 1.1)
139
139
  jdbc-sqlite3
data/NEWS.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # HEAD
2
2
 
3
+ # v 2.0.0
4
+ * Remove the following matchers:
5
+ * `assign_to`
6
+ * `respond_with_content_type`
7
+ * `query_the_database`
8
+ * `validate_format_of`
9
+ * `have_sent_email`
10
+ * `permit` (strong parameters matcher)
11
+ * `delegate_method`
12
+ * For more information about 2.0 changes, see:
13
+ http://robots.thoughtbot.com/post/47031676783/shoulda-matchers-2-0
14
+
3
15
  # v 1.5.6
4
16
  * Revert previous change in `AllowValueMatcher` that added a check for a
5
17
  properly-set attribute.
data/README.md CHANGED
@@ -58,7 +58,6 @@ describe PostsController, "#show" do
58
58
  get :show, :id => 1
59
59
  end
60
60
 
61
- it { should assign_to(:user) }
62
61
  it { should respond_with(:success) }
63
62
  it { should render_template(:show) }
64
63
  it { should_not set_the_flash }
@@ -66,16 +65,6 @@ describe PostsController, "#show" do
66
65
  end
67
66
  ```
68
67
 
69
- ## Independent Matchers
70
-
71
- Matchers to test non-Rails-dependent code:
72
-
73
- ```ruby
74
- describe Human do
75
- it { should delegate_method(:work).to(:robot) }
76
- end
77
- ```
78
-
79
68
  ## Installation
80
69
 
81
70
  In Rails 3 and Bundler, add the following to your Gemfile:
@@ -51,15 +51,14 @@ Feature: integrate with Rails
51
51
  end
52
52
 
53
53
  should respond_with(:success)
54
- should assign_to(:example)
55
54
  end
56
55
  """
57
56
  When I set the "TESTOPTS" environment variable to "-v"
58
57
  When I successfully run `bundle exec rake test --trace`
59
58
  Then the output should contain "1 tests, 1 assertions, 0 failures, 0 errors"
60
- And the output should contain "2 tests, 2 assertions, 0 failures, 0 errors"
59
+ And the output should contain "1 tests, 1 assertions, 0 failures, 0 errors"
61
60
  And the output should contain "User should require name to be set"
62
- And the output should contain "ExamplesController should assign @example"
61
+ And the output should contain "should respond with 200"
63
62
 
64
63
  Scenario: generate a rails application and use matchers in Rspec
65
64
  When I configure the application to use rspec-rails
@@ -79,13 +78,13 @@ Feature: integrate with Rails
79
78
 
80
79
  describe ExamplesController, "show" do
81
80
  before { get :show }
82
- it { should assign_to(:example) }
81
+ it { should respond_with(:success) }
83
82
  end
84
83
  """
85
84
  When I successfully run `bundle exec rake spec SPEC_OPTS=-fs --trace`
86
85
  Then the output should contain "2 examples, 0 failures"
87
86
  And the output should contain "should require name to be set"
88
- And the output should contain "should assign @example"
87
+ And the output should contain "should respond with 200"
89
88
 
90
89
  Scenario: generate a Rails application that mixes Rspec and Test::Unit
91
90
  When I configure the application to use rspec-rails in test and development
@@ -104,13 +103,12 @@ Feature: integrate with Rails
104
103
  require 'test_helper'
105
104
 
106
105
  class ExamplesControllerTest < ActionController::TestCase
107
- test 'assigns to @example' do
106
+ test 'responds successfully' do
108
107
  get :show
109
- assert assign_to(:example).matches?(@controller)
108
+ assert respond_with(:success)
110
109
  end
111
110
  end
112
111
  """
113
112
  When I successfully run `bundle exec rake spec test:functionals SPEC_OPTS=-fs --trace`
114
113
  Then the output should contain "1 example, 0 failures"
115
114
  And the output should contain "1 tests, 1 assertions, 0 failures, 0 errors"
116
- And the output should contain "should require name to be set"
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/melissaxie/thoughtbot/shoulda-matchers
3
3
  specs:
4
- shoulda-matchers (1.5.6)
4
+ shoulda-matchers (2.0.0)
5
5
  activesupport (>= 3.0.0)
6
- bourne (~> 1.3)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -125,6 +124,7 @@ DEPENDENCIES
125
124
  activerecord-jdbcsqlite3-adapter
126
125
  appraisal (~> 0.4)
127
126
  aruba
127
+ bourne (~> 1.3)
128
128
  bundler (~> 1.1)
129
129
  cucumber (~> 1.1)
130
130
  jdbc-sqlite3
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/melissaxie/thoughtbot/shoulda-matchers
3
3
  specs:
4
- shoulda-matchers (1.5.6)
4
+ shoulda-matchers (2.0.0)
5
5
  activesupport (>= 3.0.0)
6
- bourne (~> 1.3)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -144,6 +143,7 @@ DEPENDENCIES
144
143
  activerecord-jdbcsqlite3-adapter
145
144
  appraisal (~> 0.4)
146
145
  aruba
146
+ bourne (~> 1.3)
147
147
  bundler (~> 1.1)
148
148
  cucumber (~> 1.1)
149
149
  jdbc-sqlite3
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/melissaxie/thoughtbot/shoulda-matchers
3
3
  specs:
4
- shoulda-matchers (1.5.6)
4
+ shoulda-matchers (2.0.0)
5
5
  activesupport (>= 3.0.0)
6
- bourne (~> 1.3)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -142,6 +141,7 @@ DEPENDENCIES
142
141
  activerecord-jdbcsqlite3-adapter
143
142
  appraisal (~> 0.4)
144
143
  aruba
144
+ bourne (~> 1.3)
145
145
  bundler (~> 1.1)
146
146
  cucumber (~> 1.1)
147
147
  jdbc-sqlite3
@@ -1,14 +1,11 @@
1
- require 'shoulda/matchers/action_controller/assign_to_matcher'
2
1
  require 'shoulda/matchers/action_controller/filter_param_matcher'
3
2
  require 'shoulda/matchers/action_controller/set_the_flash_matcher'
4
3
  require 'shoulda/matchers/action_controller/render_with_layout_matcher'
5
4
  require 'shoulda/matchers/action_controller/respond_with_matcher'
6
- require 'shoulda/matchers/action_controller/respond_with_content_type_matcher'
7
5
  require 'shoulda/matchers/action_controller/set_session_matcher'
8
6
  require 'shoulda/matchers/action_controller/route_matcher'
9
7
  require 'shoulda/matchers/action_controller/redirect_to_matcher'
10
8
  require 'shoulda/matchers/action_controller/render_template_matcher'
11
- require 'shoulda/matchers/action_controller/strong_parameters_matcher'
12
9
 
13
10
  module Shoulda
14
11
  module Matchers
@@ -22,7 +19,6 @@ module Shoulda
22
19
  # get :show, :id => User.first.to_param
23
20
  # end
24
21
  #
25
- # it { should assign_to(:user) }
26
22
  # it { should respond_with(:success) }
27
23
  # it { should render_template(:show) }
28
24
  # it { should not_set_the_flash) }
@@ -9,7 +9,6 @@ require 'shoulda/matchers/active_model/ensure_length_of_matcher'
9
9
  require 'shoulda/matchers/active_model/ensure_inclusion_of_matcher'
10
10
  require 'shoulda/matchers/active_model/ensure_exclusion_of_matcher'
11
11
  require 'shoulda/matchers/active_model/validate_presence_of_matcher'
12
- require 'shoulda/matchers/active_model/validate_format_of_matcher'
13
12
  require 'shoulda/matchers/active_model/validate_uniqueness_of_matcher'
14
13
  require 'shoulda/matchers/active_model/validate_acceptance_of_matcher'
15
14
  require 'shoulda/matchers/active_model/validate_confirmation_of_matcher'
@@ -41,7 +40,6 @@ module Shoulda
41
40
  # class User < ActiveRecord::Base
42
41
  # validates_presence_of :name
43
42
  # validates_presence_of :phone_number
44
- # validates_format_of :phone_number, :with => /\\(\\d{3}\\) \\d{3}\\-\\d{4}/
45
43
  # validates_inclusion_of :status, :in => %w(Activated Pending), :strict => true
46
44
  # attr_accessible :name, :phone_number
47
45
  # end
@@ -3,7 +3,6 @@ require 'shoulda/matchers/active_record/have_db_column_matcher'
3
3
  require 'shoulda/matchers/active_record/have_db_index_matcher'
4
4
  require 'shoulda/matchers/active_record/have_readonly_attribute_matcher'
5
5
  require 'shoulda/matchers/active_record/serialize_matcher'
6
- require 'shoulda/matchers/active_record/query_the_database_matcher'
7
6
  require 'shoulda/matchers/active_record/accept_nested_attributes_for_matcher'
8
7
 
9
8
  module Shoulda
@@ -2,9 +2,6 @@
2
2
  require 'rspec/core'
3
3
 
4
4
  RSpec.configure do |config|
5
- require 'shoulda/matchers/independent'
6
- config.include Shoulda::Matchers::Independent
7
-
8
5
  if defined?(::ActiveRecord)
9
6
  require 'shoulda/matchers/active_record'
10
7
  require 'shoulda/matchers/active_model'
@@ -20,9 +17,4 @@ RSpec.configure do |config|
20
17
  require 'shoulda/matchers/action_controller'
21
18
  config.include Shoulda::Matchers::ActionController
22
19
  end
23
-
24
- if defined?(::ActionMailer)
25
- require 'shoulda/matchers/action_mailer'
26
- config.include Shoulda::Matchers::ActionMailer
27
- end
28
20
  end
@@ -1,15 +1,5 @@
1
1
  # :enddoc:
2
2
  require 'test/unit/testcase'
3
- require 'shoulda/matchers/independent'
4
-
5
- module Test
6
- module Unit
7
- class TestCase
8
- include Shoulda::Matchers::Independent
9
- extend Shoulda::Matchers::Independent
10
- end
11
- end
12
- end
13
3
 
14
4
  if defined?(ActionController)
15
5
  require 'shoulda/matchers/action_controller'
@@ -24,19 +14,6 @@ if defined?(ActionController)
24
14
  end
25
15
  end
26
16
 
27
- if defined?(ActionMailer)
28
- require 'shoulda/matchers/action_mailer'
29
-
30
- module Test
31
- module Unit
32
- class TestCase
33
- include Shoulda::Matchers::ActionMailer
34
- extend Shoulda::Matchers::ActionMailer
35
- end
36
- end
37
- end
38
- end
39
-
40
17
  if defined?(ActiveRecord)
41
18
  require 'shoulda/matchers/active_record'
42
19
  require 'shoulda/matchers/active_model'
@@ -1,5 +1,5 @@
1
1
  module Shoulda
2
2
  module Matchers
3
- VERSION = '1.5.6'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency('activesupport', '>= 3.0.0')
22
- s.add_dependency('bourne', '~> 1.3')
23
22
 
24
23
  s.add_development_dependency('appraisal', '~> 0.4')
25
24
  s.add_development_dependency('aruba')
25
+ s.add_development_dependency('bourne', '~> 1.3')
26
26
  s.add_development_dependency('bundler', '~> 1.1')
27
27
  s.add_development_dependency('cucumber', '~> 1.1')
28
28
  s.add_development_dependency('rails', '~> 3.0')
data/spec/spec_helper.rb CHANGED
@@ -25,6 +25,4 @@ RSpec.configure do |config|
25
25
  config.mock_with :mocha
26
26
  config.include Shoulda::Matchers::ActionController,
27
27
  :example_group => { :file_path => /action_controller/ }
28
- config.include Shoulda::Matchers::ActionMailer,
29
- :example_group => { :file_path => /action_mailer/ }
30
28
  end
@@ -64,30 +64,6 @@ module ControllerBuilder
64
64
  File.open(full_path, 'w') { |file| file.write(contents) }
65
65
  end
66
66
 
67
- def controller_for_resource_with_strong_parameters(&block)
68
- define_model "User"
69
- controller_class = define_controller "Users" do
70
- def new
71
- @user = User.new
72
- render :nothing => true
73
- end
74
-
75
- def create
76
- @user = User.create(user_params)
77
- render :nothing => true
78
- end
79
-
80
- private
81
- define_method :user_params, &block
82
- end
83
-
84
- setup_rails_controller_test(controller_class)
85
-
86
- define_routes { resources :users }
87
-
88
- controller_class
89
- end
90
-
91
67
  private
92
68
 
93
69
  def delete_temporary_views
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoulda-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tammer Saleh
@@ -14,12 +13,11 @@ authors:
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
- date: 2013-03-29 00:00:00.000000000 Z
16
+ date: 2013-04-05 00:00:00.000000000 Z
18
17
  dependencies:
19
18
  - !ruby/object:Gem::Dependency
20
19
  name: activesupport
21
20
  requirement: !ruby/object:Gem::Requirement
22
- none: false
23
21
  requirements:
24
22
  - - ! '>='
25
23
  - !ruby/object:Gem::Version
@@ -27,31 +25,13 @@ dependencies:
27
25
  type: :runtime
28
26
  prerelease: false
29
27
  version_requirements: !ruby/object:Gem::Requirement
30
- none: false
31
28
  requirements:
32
29
  - - ! '>='
33
30
  - !ruby/object:Gem::Version
34
31
  version: 3.0.0
35
- - !ruby/object:Gem::Dependency
36
- name: bourne
37
- requirement: !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ~>
41
- - !ruby/object:Gem::Version
42
- version: '1.3'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- none: false
47
- requirements:
48
- - - ~>
49
- - !ruby/object:Gem::Version
50
- version: '1.3'
51
32
  - !ruby/object:Gem::Dependency
52
33
  name: appraisal
53
34
  requirement: !ruby/object:Gem::Requirement
54
- none: false
55
35
  requirements:
56
36
  - - ~>
57
37
  - !ruby/object:Gem::Version
@@ -59,7 +39,6 @@ dependencies:
59
39
  type: :development
60
40
  prerelease: false
61
41
  version_requirements: !ruby/object:Gem::Requirement
62
- none: false
63
42
  requirements:
64
43
  - - ~>
65
44
  - !ruby/object:Gem::Version
@@ -67,7 +46,6 @@ dependencies:
67
46
  - !ruby/object:Gem::Dependency
68
47
  name: aruba
69
48
  requirement: !ruby/object:Gem::Requirement
70
- none: false
71
49
  requirements:
72
50
  - - ! '>='
73
51
  - !ruby/object:Gem::Version
@@ -75,15 +53,27 @@ dependencies:
75
53
  type: :development
76
54
  prerelease: false
77
55
  version_requirements: !ruby/object:Gem::Requirement
78
- none: false
79
56
  requirements:
80
57
  - - ! '>='
81
58
  - !ruby/object:Gem::Version
82
59
  version: '0'
60
+ - !ruby/object:Gem::Dependency
61
+ name: bourne
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: '1.3'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ~>
72
+ - !ruby/object:Gem::Version
73
+ version: '1.3'
83
74
  - !ruby/object:Gem::Dependency
84
75
  name: bundler
85
76
  requirement: !ruby/object:Gem::Requirement
86
- none: false
87
77
  requirements:
88
78
  - - ~>
89
79
  - !ruby/object:Gem::Version
@@ -91,7 +81,6 @@ dependencies:
91
81
  type: :development
92
82
  prerelease: false
93
83
  version_requirements: !ruby/object:Gem::Requirement
94
- none: false
95
84
  requirements:
96
85
  - - ~>
97
86
  - !ruby/object:Gem::Version
@@ -99,7 +88,6 @@ dependencies:
99
88
  - !ruby/object:Gem::Dependency
100
89
  name: cucumber
101
90
  requirement: !ruby/object:Gem::Requirement
102
- none: false
103
91
  requirements:
104
92
  - - ~>
105
93
  - !ruby/object:Gem::Version
@@ -107,7 +95,6 @@ dependencies:
107
95
  type: :development
108
96
  prerelease: false
109
97
  version_requirements: !ruby/object:Gem::Requirement
110
- none: false
111
98
  requirements:
112
99
  - - ~>
113
100
  - !ruby/object:Gem::Version
@@ -115,7 +102,6 @@ dependencies:
115
102
  - !ruby/object:Gem::Dependency
116
103
  name: rails
117
104
  requirement: !ruby/object:Gem::Requirement
118
- none: false
119
105
  requirements:
120
106
  - - ~>
121
107
  - !ruby/object:Gem::Version
@@ -123,7 +109,6 @@ dependencies:
123
109
  type: :development
124
110
  prerelease: false
125
111
  version_requirements: !ruby/object:Gem::Requirement
126
- none: false
127
112
  requirements:
128
113
  - - ~>
129
114
  - !ruby/object:Gem::Version
@@ -131,7 +116,6 @@ dependencies:
131
116
  - !ruby/object:Gem::Dependency
132
117
  name: rake
133
118
  requirement: !ruby/object:Gem::Requirement
134
- none: false
135
119
  requirements:
136
120
  - - ! '>='
137
121
  - !ruby/object:Gem::Version
@@ -139,7 +123,6 @@ dependencies:
139
123
  type: :development
140
124
  prerelease: false
141
125
  version_requirements: !ruby/object:Gem::Requirement
142
- none: false
143
126
  requirements:
144
127
  - - ! '>='
145
128
  - !ruby/object:Gem::Version
@@ -147,7 +130,6 @@ dependencies:
147
130
  - !ruby/object:Gem::Dependency
148
131
  name: rspec-rails
149
132
  requirement: !ruby/object:Gem::Requirement
150
- none: false
151
133
  requirements:
152
134
  - - ~>
153
135
  - !ruby/object:Gem::Version
@@ -155,7 +137,6 @@ dependencies:
155
137
  type: :development
156
138
  prerelease: false
157
139
  version_requirements: !ruby/object:Gem::Requirement
158
- none: false
159
140
  requirements:
160
141
  - - ~>
161
142
  - !ruby/object:Gem::Version
@@ -163,7 +144,6 @@ dependencies:
163
144
  - !ruby/object:Gem::Dependency
164
145
  name: strong_parameters
165
146
  requirement: !ruby/object:Gem::Requirement
166
- none: false
167
147
  requirements:
168
148
  - - ! '>='
169
149
  - !ruby/object:Gem::Version
@@ -171,7 +151,6 @@ dependencies:
171
151
  type: :development
172
152
  prerelease: false
173
153
  version_requirements: !ruby/object:Gem::Requirement
174
- none: false
175
154
  requirements:
176
155
  - - ! '>='
177
156
  - !ruby/object:Gem::Version
@@ -204,19 +183,14 @@ files:
204
183
  - lib/shoulda-matchers.rb
205
184
  - lib/shoulda/matchers.rb
206
185
  - lib/shoulda/matchers/action_controller.rb
207
- - lib/shoulda/matchers/action_controller/assign_to_matcher.rb
208
186
  - lib/shoulda/matchers/action_controller/filter_param_matcher.rb
209
187
  - lib/shoulda/matchers/action_controller/redirect_to_matcher.rb
210
188
  - lib/shoulda/matchers/action_controller/render_template_matcher.rb
211
189
  - lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb
212
- - lib/shoulda/matchers/action_controller/respond_with_content_type_matcher.rb
213
190
  - lib/shoulda/matchers/action_controller/respond_with_matcher.rb
214
191
  - lib/shoulda/matchers/action_controller/route_matcher.rb
215
192
  - lib/shoulda/matchers/action_controller/set_session_matcher.rb
216
193
  - lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb
217
- - lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb
218
- - lib/shoulda/matchers/action_mailer.rb
219
- - lib/shoulda/matchers/action_mailer/have_sent_email_matcher.rb
220
194
  - lib/shoulda/matchers/active_model.rb
221
195
  - lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb
222
196
  - lib/shoulda/matchers/active_model/allow_value_matcher.rb
@@ -230,7 +204,6 @@ files:
230
204
  - lib/shoulda/matchers/active_model/only_integer_matcher.rb
231
205
  - lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb
232
206
  - lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb
233
- - lib/shoulda/matchers/active_model/validate_format_of_matcher.rb
234
207
  - lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb
235
208
  - lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb
236
209
  - lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb
@@ -242,27 +215,20 @@ files:
242
215
  - lib/shoulda/matchers/active_record/have_db_column_matcher.rb
243
216
  - lib/shoulda/matchers/active_record/have_db_index_matcher.rb
244
217
  - lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb
245
- - lib/shoulda/matchers/active_record/query_the_database_matcher.rb
246
218
  - lib/shoulda/matchers/active_record/serialize_matcher.rb
247
219
  - lib/shoulda/matchers/assertion_error.rb
248
- - lib/shoulda/matchers/independent.rb
249
- - lib/shoulda/matchers/independent/delegate_matcher.rb
250
220
  - lib/shoulda/matchers/integrations/rspec.rb
251
221
  - lib/shoulda/matchers/integrations/test_unit.rb
252
222
  - lib/shoulda/matchers/version.rb
253
223
  - shoulda-matchers.gemspec
254
- - spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb
255
224
  - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
256
225
  - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
257
226
  - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
258
227
  - spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
259
- - spec/shoulda/matchers/action_controller/respond_with_content_type_matcher_spec.rb
260
228
  - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
261
229
  - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
262
230
  - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
263
231
  - spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb
264
- - spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb
265
- - spec/shoulda/matchers/action_mailer/have_sent_email_spec.rb
266
232
  - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
267
233
  - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
268
234
  - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
@@ -274,7 +240,6 @@ files:
274
240
  - spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb
275
241
  - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
276
242
  - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
277
- - spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb
278
243
  - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
279
244
  - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
280
245
  - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
@@ -284,9 +249,7 @@ files:
284
249
  - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
285
250
  - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
286
251
  - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
287
- - spec/shoulda/matchers/active_record/query_the_database_matcher_spec.rb
288
252
  - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
289
- - spec/shoulda/matchers/independent/delegate_matcher_spec.rb
290
253
  - spec/spec_helper.rb
291
254
  - spec/support/active_model_versions.rb
292
255
  - spec/support/activemodel_helpers.rb
@@ -297,50 +260,39 @@ files:
297
260
  homepage: http://thoughtbot.com/community/
298
261
  licenses:
299
262
  - MIT
263
+ metadata: {}
300
264
  post_install_message:
301
265
  rdoc_options: []
302
266
  require_paths:
303
267
  - lib
304
268
  required_ruby_version: !ruby/object:Gem::Requirement
305
- none: false
306
269
  requirements:
307
270
  - - ! '>='
308
271
  - !ruby/object:Gem::Version
309
272
  version: '0'
310
- segments:
311
- - 0
312
- hash: 1811541480195488740
313
273
  required_rubygems_version: !ruby/object:Gem::Requirement
314
- none: false
315
274
  requirements:
316
275
  - - ! '>='
317
276
  - !ruby/object:Gem::Version
318
277
  version: '0'
319
- segments:
320
- - 0
321
- hash: 1811541480195488740
322
278
  requirements: []
323
279
  rubyforge_project:
324
- rubygems_version: 1.8.25
280
+ rubygems_version: 2.0.3
325
281
  signing_key:
326
- specification_version: 3
282
+ specification_version: 4
327
283
  summary: Making tests easy on the fingers and eyes
328
284
  test_files:
329
285
  - features/rails_integration.feature
330
286
  - features/step_definitions/rails_steps.rb
331
287
  - features/support/env.rb
332
- - spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb
333
288
  - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
334
289
  - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
335
290
  - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
336
291
  - spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb
337
- - spec/shoulda/matchers/action_controller/respond_with_content_type_matcher_spec.rb
338
292
  - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
339
293
  - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
340
294
  - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
341
295
  - spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb
342
- - spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb
343
- - spec/shoulda/matchers/action_mailer/have_sent_email_spec.rb
344
296
  - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
345
297
  - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
346
298
  - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
@@ -352,7 +304,6 @@ test_files:
352
304
  - spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb
353
305
  - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
354
306
  - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
355
- - spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb
356
307
  - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
357
308
  - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
358
309
  - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
@@ -362,9 +313,7 @@ test_files:
362
313
  - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
363
314
  - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
364
315
  - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
365
- - spec/shoulda/matchers/active_record/query_the_database_matcher_spec.rb
366
316
  - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
367
- - spec/shoulda/matchers/independent/delegate_matcher_spec.rb
368
317
  - spec/spec_helper.rb
369
318
  - spec/support/active_model_versions.rb
370
319
  - spec/support/activemodel_helpers.rb