shoulda-matchers 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. data/.travis.yml +11 -3
  2. data/Appraisals +3 -3
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +69 -70
  5. data/MIT-LICENSE +1 -1
  6. data/NEWS.md +22 -4
  7. data/README.md +3 -1
  8. data/Rakefile +9 -5
  9. data/features/step_definitions/rails_steps.rb +7 -7
  10. data/features/support/env.rb +1 -1
  11. data/gemfiles/3.0.gemfile +1 -1
  12. data/gemfiles/3.0.gemfile.lock +25 -22
  13. data/gemfiles/3.1.gemfile +1 -1
  14. data/gemfiles/3.1.gemfile.lock +27 -24
  15. data/gemfiles/3.2.gemfile +1 -1
  16. data/gemfiles/3.2.gemfile.lock +56 -52
  17. data/lib/shoulda/matchers/action_controller.rb +3 -2
  18. data/lib/shoulda/matchers/action_controller/assign_to_matcher.rb +10 -8
  19. data/lib/shoulda/matchers/action_controller/filter_param_matcher.rb +2 -4
  20. data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +3 -4
  21. data/lib/shoulda/matchers/action_controller/render_template_matcher.rb +3 -4
  22. data/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb +6 -6
  23. data/lib/shoulda/matchers/action_controller/respond_with_content_type_matcher.rb +5 -2
  24. data/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +2 -2
  25. data/lib/shoulda/matchers/action_controller/route_matcher.rb +12 -12
  26. data/lib/shoulda/matchers/action_controller/set_session_matcher.rb +3 -4
  27. data/lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb +10 -11
  28. data/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb +121 -0
  29. data/lib/shoulda/matchers/action_mailer/have_sent_email_matcher.rb +7 -4
  30. data/lib/shoulda/matchers/active_model.rb +1 -1
  31. data/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb +8 -8
  32. data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +5 -4
  33. data/lib/shoulda/matchers/active_model/disallow_value_matcher.rb +3 -3
  34. data/lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb +2 -2
  35. data/lib/shoulda/matchers/active_model/exception_message_finder.rb +0 -1
  36. data/lib/shoulda/matchers/active_model/helpers.rb +16 -7
  37. data/lib/shoulda/matchers/active_model/only_integer_matcher.rb +3 -3
  38. data/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +8 -6
  39. data/lib/shoulda/matchers/active_model/validate_format_of_matcher.rb +19 -10
  40. data/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +4 -4
  41. data/lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb +19 -21
  42. data/lib/shoulda/matchers/active_model/validation_matcher.rb +7 -7
  43. data/lib/shoulda/matchers/active_model/validation_message_finder.rb +1 -1
  44. data/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb +5 -5
  45. data/lib/shoulda/matchers/active_record/association_matcher.rb +3 -3
  46. data/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +11 -7
  47. data/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +2 -2
  48. data/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +5 -5
  49. data/lib/shoulda/matchers/active_record/query_the_database_matcher.rb +5 -2
  50. data/lib/shoulda/matchers/active_record/serialize_matcher.rb +3 -3
  51. data/lib/shoulda/matchers/assertion_error.rb +4 -1
  52. data/lib/shoulda/matchers/independent/delegate_matcher.rb +17 -7
  53. data/lib/shoulda/matchers/integrations/rspec.rb +19 -33
  54. data/lib/shoulda/matchers/version.rb +1 -1
  55. data/shoulda-matchers.gemspec +6 -4
  56. data/spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb +66 -0
  57. data/spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +22 -0
  58. data/spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +42 -0
  59. data/spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb +78 -0
  60. data/spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +58 -0
  61. data/spec/shoulda/matchers/action_controller/respond_with_content_type_matcher_spec.rb +31 -0
  62. data/spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +31 -0
  63. data/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +65 -0
  64. data/spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb +51 -0
  65. data/spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb +153 -0
  66. data/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb +142 -0
  67. data/spec/shoulda/matchers/action_mailer/have_sent_email_spec.rb +324 -0
  68. data/spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +111 -0
  69. data/spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb +124 -0
  70. data/spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +43 -0
  71. data/spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb +74 -0
  72. data/spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb +171 -0
  73. data/spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb +113 -0
  74. data/spec/shoulda/{active_model → matchers/active_model}/exception_message_finder_spec.rb +2 -2
  75. data/spec/shoulda/matchers/active_model/helpers_spec.rb +158 -0
  76. data/spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb +52 -0
  77. data/spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +41 -0
  78. data/spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +41 -0
  79. data/spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb +75 -0
  80. data/spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +73 -0
  81. data/spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +127 -0
  82. data/spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb +175 -0
  83. data/spec/shoulda/{active_model → matchers/active_model}/validation_message_finder_spec.rb +0 -1
  84. data/spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +106 -0
  85. data/spec/shoulda/matchers/active_record/association_matcher_spec.rb +534 -0
  86. data/spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +111 -0
  87. data/spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +78 -0
  88. data/spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +41 -0
  89. data/spec/shoulda/{active_record → matchers/active_record}/query_the_database_matcher_spec.rb +10 -10
  90. data/spec/shoulda/matchers/active_record/serialize_matcher_spec.rb +86 -0
  91. data/spec/shoulda/{independent → matchers/independent}/delegate_matcher_spec.rb +55 -34
  92. data/spec/spec_helper.rb +1 -2
  93. data/spec/support/active_model_versions.rb +4 -0
  94. data/spec/support/activemodel_helpers.rb +19 -0
  95. data/spec/support/controller_builder.rb +38 -12
  96. data/spec/support/model_builder.rb +8 -2
  97. metadata +106 -98
  98. data/spec/fixtures/addresses.yml +0 -3
  99. data/spec/fixtures/friendships.yml +0 -0
  100. data/spec/fixtures/posts.yml +0 -5
  101. data/spec/fixtures/products.yml +0 -0
  102. data/spec/fixtures/taggings.yml +0 -0
  103. data/spec/fixtures/tags.yml +0 -9
  104. data/spec/fixtures/users.yml +0 -6
  105. data/spec/shoulda/action_controller/assign_to_matcher_spec.rb +0 -63
  106. data/spec/shoulda/action_controller/filter_param_matcher_spec.rb +0 -20
  107. data/spec/shoulda/action_controller/redirect_to_matcher_spec.rb +0 -40
  108. data/spec/shoulda/action_controller/render_template_matcher_spec.rb +0 -69
  109. data/spec/shoulda/action_controller/render_with_layout_matcher_spec.rb +0 -55
  110. data/spec/shoulda/action_controller/respond_with_content_type_matcher_spec.rb +0 -28
  111. data/spec/shoulda/action_controller/respond_with_matcher_spec.rb +0 -83
  112. data/spec/shoulda/action_controller/route_matcher_spec.rb +0 -65
  113. data/spec/shoulda/action_controller/set_session_matcher_spec.rb +0 -46
  114. data/spec/shoulda/action_controller/set_the_flash_matcher_spec.rb +0 -130
  115. data/spec/shoulda/action_mailer/have_sent_email_spec.rb +0 -333
  116. data/spec/shoulda/active_model/allow_mass_assignment_of_matcher_spec.rb +0 -115
  117. data/spec/shoulda/active_model/allow_value_matcher_spec.rb +0 -131
  118. data/spec/shoulda/active_model/disallow_value_matcher_spec.rb +0 -65
  119. data/spec/shoulda/active_model/ensure_exclusion_of_matcher_spec.rb +0 -79
  120. data/spec/shoulda/active_model/ensure_inclusion_of_matcher_spec.rb +0 -181
  121. data/spec/shoulda/active_model/ensure_length_of_matcher_spec.rb +0 -138
  122. data/spec/shoulda/active_model/helpers_spec.rb +0 -129
  123. data/spec/shoulda/active_model/only_integer_matcher_spec.rb +0 -69
  124. data/spec/shoulda/active_model/validate_acceptance_of_matcher_spec.rb +0 -43
  125. data/spec/shoulda/active_model/validate_confirmation_of_matcher_spec.rb +0 -48
  126. data/spec/shoulda/active_model/validate_format_of_matcher_spec.rb +0 -79
  127. data/spec/shoulda/active_model/validate_numericality_of_matcher_spec.rb +0 -112
  128. data/spec/shoulda/active_model/validate_presence_of_matcher_spec.rb +0 -135
  129. data/spec/shoulda/active_model/validate_uniqueness_of_matcher_spec.rb +0 -154
  130. data/spec/shoulda/active_record/accept_nested_attributes_for_matcher_spec.rb +0 -84
  131. data/spec/shoulda/active_record/association_matcher_spec.rb +0 -642
  132. data/spec/shoulda/active_record/have_db_column_matcher_spec.rb +0 -185
  133. data/spec/shoulda/active_record/have_db_index_matcher_spec.rb +0 -105
  134. data/spec/shoulda/active_record/have_readonly_attributes_matcher_spec.rb +0 -46
  135. data/spec/shoulda/active_record/serialize_matcher_spec.rb +0 -81
@@ -7,7 +7,6 @@ ENV['RAILS_ENV'] = 'test'
7
7
  ENV['BUNDLE_GEMFILE'] ||= TESTAPP_ROOT + '/Gemfile'
8
8
 
9
9
  require "#{TESTAPP_ROOT}/config/environment"
10
- require 'rspec'
11
10
  require 'bourne'
12
11
  require 'shoulda-matchers'
13
12
  require 'rspec/rails'
@@ -20,7 +19,7 @@ Dir[File.join(PROJECT_ROOT, 'spec', 'support', '**', '*.rb')].each { |file| requ
20
19
 
21
20
  # Run the migrations
22
21
  ActiveRecord::Migration.verbose = false
23
- ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
22
+ ActiveRecord::Migrator.migrate(Rails.root.join('db/migrate'))
24
23
 
25
24
  RSpec.configure do |config|
26
25
  config.mock_with :mocha
@@ -1,4 +1,8 @@
1
1
  RSpec.configure do |c|
2
+ def active_model_3_0?
3
+ ::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 0
4
+ end
5
+
2
6
  def active_model_3_1?
3
7
  ::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 1
4
8
  end
@@ -0,0 +1,19 @@
1
+ module ActiveModelHelpers
2
+ def custom_validation(&block)
3
+ define_model(:example, :attr => :integer) do
4
+ validate :custom_validation
5
+
6
+ define_method(:custom_validation, &block)
7
+ end.new
8
+ end
9
+
10
+ def validating_format(options)
11
+ define_model :example, :attr => :string do
12
+ validates_format_of :attr, options
13
+ end.new
14
+ end
15
+ end
16
+
17
+ RSpec.configure do |c|
18
+ c.include ActiveModelHelpers
19
+ end
@@ -1,6 +1,6 @@
1
1
  module ControllerBuilder
2
- TMP_VIEW_PATH =
3
- File.expand_path(File.join(TESTAPP_ROOT, 'tmp', 'views')).freeze
2
+ TMP_VIEW_PATH = File.expand_path(File.join(TESTAPP_ROOT, 'tmp',
3
+ 'views')).freeze
4
4
 
5
5
  def self.included(example_group)
6
6
  example_group.class_eval do
@@ -36,24 +36,26 @@ module ControllerBuilder
36
36
  controller_class.view_paths = [TMP_VIEW_PATH]
37
37
 
38
38
  define_routes do
39
- match 'examples', :to => "examples##{action}"
39
+ get 'examples', :to => "examples##{action}"
40
40
  end
41
41
 
42
- create_view("examples/#{action}.html.erb", "abc")
43
- create_view("examples/#{partial}.html.erb", "partial")
42
+ create_view("examples/#{action}.html.erb", 'action')
43
+ create_view("examples/#{partial}.html.erb", 'partial')
44
44
 
45
+ setup_rails_controller_test(controller_class)
46
+ get action
47
+
48
+ @controller
49
+ end
50
+
51
+ def setup_rails_controller_test(controller_class)
45
52
  @controller = controller_class.new
46
- @request = ActionController::TestRequest.new
47
- @response = ActionController::TestResponse.new
53
+ @request = ::ActionController::TestRequest.new
54
+ @response = ::ActionController::TestResponse.new
48
55
 
49
56
  class << self
50
57
  include ActionController::TestCase::Behavior
51
58
  end
52
- @routes = Rails.application.routes
53
-
54
- get action
55
-
56
- @controller
57
59
  end
58
60
 
59
61
  def create_view(path, contents)
@@ -62,6 +64,30 @@ module ControllerBuilder
62
64
  File.open(full_path, 'w') { |file| file.write(contents) }
63
65
  end
64
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
+
65
91
  private
66
92
 
67
93
  def delete_temporary_views
@@ -46,13 +46,19 @@ module ModelBuilder
46
46
  def define_model(name, columns = {}, &block)
47
47
  class_name = name.to_s.pluralize.classify
48
48
  table_name = class_name.tableize
49
-
50
- create_table(table_name) do |table|
49
+ table_block = lambda do |table|
51
50
  columns.each do |name, type|
52
51
  table.column name, type
53
52
  end
54
53
  end
55
54
 
55
+ if columns.key?(:id) && columns[:id] == false
56
+ columns.delete(:id)
57
+ create_table(table_name, :id => false, &table_block)
58
+ else
59
+ create_table(table_name, &table_block)
60
+ end
61
+
56
62
  define_model_class(class_name, &block)
57
63
  end
58
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoulda-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2012-11-30 00:00:00.000000000 Z
17
+ date: 2013-03-15 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activesupport
@@ -39,7 +39,7 @@ dependencies:
39
39
  requirements:
40
40
  - - ~>
41
41
  - !ruby/object:Gem::Version
42
- version: 1.1.2
42
+ version: 1.2.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,7 +47,7 @@ dependencies:
47
47
  requirements:
48
48
  - - ~>
49
49
  - !ruby/object:Gem::Version
50
- version: 1.1.2
50
+ version: 1.2.0
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: appraisal
53
53
  requirement: !ruby/object:Gem::Requirement
@@ -55,7 +55,7 @@ dependencies:
55
55
  requirements:
56
56
  - - ~>
57
57
  - !ruby/object:Gem::Version
58
- version: 0.4.0
58
+ version: '0.4'
59
59
  type: :development
60
60
  prerelease: false
61
61
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  requirements:
64
64
  - - ~>
65
65
  - !ruby/object:Gem::Version
66
- version: 0.4.0
66
+ version: '0.4'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: aruba
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +103,7 @@ dependencies:
103
103
  requirements:
104
104
  - - ~>
105
105
  - !ruby/object:Gem::Version
106
- version: 1.1.9
106
+ version: '1.1'
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -111,7 +111,7 @@ dependencies:
111
111
  requirements:
112
112
  - - ~>
113
113
  - !ruby/object:Gem::Version
114
- version: 1.1.9
114
+ version: '1.1'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: rails
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -133,7 +133,7 @@ dependencies:
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  none: false
135
135
  requirements:
136
- - - ~>
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.9.2
139
139
  type: :development
@@ -141,7 +141,7 @@ dependencies:
141
141
  version_requirements: !ruby/object:Gem::Requirement
142
142
  none: false
143
143
  requirements:
144
- - - ~>
144
+ - - ! '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: 0.9.2
147
147
  - !ruby/object:Gem::Dependency
@@ -160,6 +160,22 @@ dependencies:
160
160
  - - ~>
161
161
  - !ruby/object:Gem::Version
162
162
  version: 2.8.1
163
+ - !ruby/object:Gem::Dependency
164
+ name: strong_parameters
165
+ requirement: !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ type: :development
172
+ prerelease: false
173
+ version_requirements: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
163
179
  description: Making tests easy on the fingers and eyes
164
180
  email: support@thoughtbot.com
165
181
  executables: []
@@ -198,6 +214,7 @@ files:
198
214
  - lib/shoulda/matchers/action_controller/route_matcher.rb
199
215
  - lib/shoulda/matchers/action_controller/set_session_matcher.rb
200
216
  - lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb
217
+ - lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb
201
218
  - lib/shoulda/matchers/action_mailer.rb
202
219
  - lib/shoulda/matchers/action_mailer/have_sent_email_matcher.rb
203
220
  - lib/shoulda/matchers/active_model.rb
@@ -234,56 +251,52 @@ files:
234
251
  - lib/shoulda/matchers/integrations/test_unit.rb
235
252
  - lib/shoulda/matchers/version.rb
236
253
  - shoulda-matchers.gemspec
237
- - spec/fixtures/addresses.yml
238
- - spec/fixtures/friendships.yml
239
- - spec/fixtures/posts.yml
240
- - spec/fixtures/products.yml
241
- - spec/fixtures/taggings.yml
242
- - spec/fixtures/tags.yml
243
- - spec/fixtures/users.yml
244
- - spec/shoulda/action_controller/assign_to_matcher_spec.rb
245
- - spec/shoulda/action_controller/filter_param_matcher_spec.rb
246
- - spec/shoulda/action_controller/redirect_to_matcher_spec.rb
247
- - spec/shoulda/action_controller/render_template_matcher_spec.rb
248
- - spec/shoulda/action_controller/render_with_layout_matcher_spec.rb
249
- - spec/shoulda/action_controller/respond_with_content_type_matcher_spec.rb
250
- - spec/shoulda/action_controller/respond_with_matcher_spec.rb
251
- - spec/shoulda/action_controller/route_matcher_spec.rb
252
- - spec/shoulda/action_controller/set_session_matcher_spec.rb
253
- - spec/shoulda/action_controller/set_the_flash_matcher_spec.rb
254
- - spec/shoulda/action_mailer/have_sent_email_spec.rb
255
- - spec/shoulda/active_model/allow_mass_assignment_of_matcher_spec.rb
256
- - spec/shoulda/active_model/allow_value_matcher_spec.rb
257
- - spec/shoulda/active_model/disallow_value_matcher_spec.rb
258
- - spec/shoulda/active_model/ensure_exclusion_of_matcher_spec.rb
259
- - spec/shoulda/active_model/ensure_inclusion_of_matcher_spec.rb
260
- - spec/shoulda/active_model/ensure_length_of_matcher_spec.rb
261
- - spec/shoulda/active_model/exception_message_finder_spec.rb
262
- - spec/shoulda/active_model/helpers_spec.rb
263
- - spec/shoulda/active_model/only_integer_matcher_spec.rb
264
- - spec/shoulda/active_model/validate_acceptance_of_matcher_spec.rb
265
- - spec/shoulda/active_model/validate_confirmation_of_matcher_spec.rb
266
- - spec/shoulda/active_model/validate_format_of_matcher_spec.rb
267
- - spec/shoulda/active_model/validate_numericality_of_matcher_spec.rb
268
- - spec/shoulda/active_model/validate_presence_of_matcher_spec.rb
269
- - spec/shoulda/active_model/validate_uniqueness_of_matcher_spec.rb
270
- - spec/shoulda/active_model/validation_message_finder_spec.rb
271
- - spec/shoulda/active_record/accept_nested_attributes_for_matcher_spec.rb
272
- - spec/shoulda/active_record/association_matcher_spec.rb
273
- - spec/shoulda/active_record/have_db_column_matcher_spec.rb
274
- - spec/shoulda/active_record/have_db_index_matcher_spec.rb
275
- - spec/shoulda/active_record/have_readonly_attributes_matcher_spec.rb
276
- - spec/shoulda/active_record/query_the_database_matcher_spec.rb
277
- - spec/shoulda/active_record/serialize_matcher_spec.rb
278
- - spec/shoulda/independent/delegate_matcher_spec.rb
254
+ - spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb
255
+ - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
256
+ - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
257
+ - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
258
+ - 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
+ - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
261
+ - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
262
+ - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
263
+ - 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
+ - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
267
+ - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
268
+ - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
269
+ - spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb
270
+ - spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb
271
+ - spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb
272
+ - spec/shoulda/matchers/active_model/exception_message_finder_spec.rb
273
+ - spec/shoulda/matchers/active_model/helpers_spec.rb
274
+ - spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb
275
+ - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
276
+ - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
277
+ - spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb
278
+ - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
279
+ - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
280
+ - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
281
+ - spec/shoulda/matchers/active_model/validation_message_finder_spec.rb
282
+ - spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
283
+ - spec/shoulda/matchers/active_record/association_matcher_spec.rb
284
+ - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
285
+ - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
286
+ - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
287
+ - spec/shoulda/matchers/active_record/query_the_database_matcher_spec.rb
288
+ - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
289
+ - spec/shoulda/matchers/independent/delegate_matcher_spec.rb
279
290
  - spec/spec_helper.rb
280
291
  - spec/support/active_model_versions.rb
292
+ - spec/support/activemodel_helpers.rb
281
293
  - spec/support/class_builder.rb
282
294
  - spec/support/controller_builder.rb
283
295
  - spec/support/mailer_builder.rb
284
296
  - spec/support/model_builder.rb
285
297
  homepage: http://thoughtbot.com/community/
286
- licenses: []
298
+ licenses:
299
+ - MIT
287
300
  post_install_message:
288
301
  rdoc_options: []
289
302
  require_paths:
@@ -296,7 +309,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
309
  version: '0'
297
310
  segments:
298
311
  - 0
299
- hash: 3885961739329133579
312
+ hash: -1249143589837050038
300
313
  required_rubygems_version: !ruby/object:Gem::Requirement
301
314
  none: false
302
315
  requirements:
@@ -305,10 +318,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
318
  version: '0'
306
319
  segments:
307
320
  - 0
308
- hash: 3885961739329133579
321
+ hash: -1249143589837050038
309
322
  requirements: []
310
323
  rubyforge_project:
311
- rubygems_version: 1.8.24
324
+ rubygems_version: 1.8.23
312
325
  signing_key:
313
326
  specification_version: 3
314
327
  summary: Making tests easy on the fingers and eyes
@@ -316,50 +329,45 @@ test_files:
316
329
  - features/rails_integration.feature
317
330
  - features/step_definitions/rails_steps.rb
318
331
  - features/support/env.rb
319
- - spec/fixtures/addresses.yml
320
- - spec/fixtures/friendships.yml
321
- - spec/fixtures/posts.yml
322
- - spec/fixtures/products.yml
323
- - spec/fixtures/taggings.yml
324
- - spec/fixtures/tags.yml
325
- - spec/fixtures/users.yml
326
- - spec/shoulda/action_controller/assign_to_matcher_spec.rb
327
- - spec/shoulda/action_controller/filter_param_matcher_spec.rb
328
- - spec/shoulda/action_controller/redirect_to_matcher_spec.rb
329
- - spec/shoulda/action_controller/render_template_matcher_spec.rb
330
- - spec/shoulda/action_controller/render_with_layout_matcher_spec.rb
331
- - spec/shoulda/action_controller/respond_with_content_type_matcher_spec.rb
332
- - spec/shoulda/action_controller/respond_with_matcher_spec.rb
333
- - spec/shoulda/action_controller/route_matcher_spec.rb
334
- - spec/shoulda/action_controller/set_session_matcher_spec.rb
335
- - spec/shoulda/action_controller/set_the_flash_matcher_spec.rb
336
- - spec/shoulda/action_mailer/have_sent_email_spec.rb
337
- - spec/shoulda/active_model/allow_mass_assignment_of_matcher_spec.rb
338
- - spec/shoulda/active_model/allow_value_matcher_spec.rb
339
- - spec/shoulda/active_model/disallow_value_matcher_spec.rb
340
- - spec/shoulda/active_model/ensure_exclusion_of_matcher_spec.rb
341
- - spec/shoulda/active_model/ensure_inclusion_of_matcher_spec.rb
342
- - spec/shoulda/active_model/ensure_length_of_matcher_spec.rb
343
- - spec/shoulda/active_model/exception_message_finder_spec.rb
344
- - spec/shoulda/active_model/helpers_spec.rb
345
- - spec/shoulda/active_model/only_integer_matcher_spec.rb
346
- - spec/shoulda/active_model/validate_acceptance_of_matcher_spec.rb
347
- - spec/shoulda/active_model/validate_confirmation_of_matcher_spec.rb
348
- - spec/shoulda/active_model/validate_format_of_matcher_spec.rb
349
- - spec/shoulda/active_model/validate_numericality_of_matcher_spec.rb
350
- - spec/shoulda/active_model/validate_presence_of_matcher_spec.rb
351
- - spec/shoulda/active_model/validate_uniqueness_of_matcher_spec.rb
352
- - spec/shoulda/active_model/validation_message_finder_spec.rb
353
- - spec/shoulda/active_record/accept_nested_attributes_for_matcher_spec.rb
354
- - spec/shoulda/active_record/association_matcher_spec.rb
355
- - spec/shoulda/active_record/have_db_column_matcher_spec.rb
356
- - spec/shoulda/active_record/have_db_index_matcher_spec.rb
357
- - spec/shoulda/active_record/have_readonly_attributes_matcher_spec.rb
358
- - spec/shoulda/active_record/query_the_database_matcher_spec.rb
359
- - spec/shoulda/active_record/serialize_matcher_spec.rb
360
- - spec/shoulda/independent/delegate_matcher_spec.rb
332
+ - spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb
333
+ - spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb
334
+ - spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb
335
+ - spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb
336
+ - 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
+ - spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb
339
+ - spec/shoulda/matchers/action_controller/route_matcher_spec.rb
340
+ - spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb
341
+ - 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
+ - spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb
345
+ - spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
346
+ - spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb
347
+ - spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb
348
+ - spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb
349
+ - spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb
350
+ - spec/shoulda/matchers/active_model/exception_message_finder_spec.rb
351
+ - spec/shoulda/matchers/active_model/helpers_spec.rb
352
+ - spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb
353
+ - spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb
354
+ - spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb
355
+ - spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb
356
+ - spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb
357
+ - spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
358
+ - spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
359
+ - spec/shoulda/matchers/active_model/validation_message_finder_spec.rb
360
+ - spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb
361
+ - spec/shoulda/matchers/active_record/association_matcher_spec.rb
362
+ - spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb
363
+ - spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb
364
+ - spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb
365
+ - spec/shoulda/matchers/active_record/query_the_database_matcher_spec.rb
366
+ - spec/shoulda/matchers/active_record/serialize_matcher_spec.rb
367
+ - spec/shoulda/matchers/independent/delegate_matcher_spec.rb
361
368
  - spec/spec_helper.rb
362
369
  - spec/support/active_model_versions.rb
370
+ - spec/support/activemodel_helpers.rb
363
371
  - spec/support/class_builder.rb
364
372
  - spec/support/controller_builder.rb
365
373
  - spec/support/mailer_builder.rb