shoulda-matchers 1.4.2 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +11 -3
- data/Appraisals +3 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +69 -70
- data/MIT-LICENSE +1 -1
- data/NEWS.md +22 -4
- data/README.md +3 -1
- data/Rakefile +9 -5
- data/features/step_definitions/rails_steps.rb +7 -7
- data/features/support/env.rb +1 -1
- data/gemfiles/3.0.gemfile +1 -1
- data/gemfiles/3.0.gemfile.lock +25 -22
- data/gemfiles/3.1.gemfile +1 -1
- data/gemfiles/3.1.gemfile.lock +27 -24
- data/gemfiles/3.2.gemfile +1 -1
- data/gemfiles/3.2.gemfile.lock +56 -52
- data/lib/shoulda/matchers/action_controller.rb +3 -2
- data/lib/shoulda/matchers/action_controller/assign_to_matcher.rb +10 -8
- data/lib/shoulda/matchers/action_controller/filter_param_matcher.rb +2 -4
- data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +3 -4
- data/lib/shoulda/matchers/action_controller/render_template_matcher.rb +3 -4
- data/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb +6 -6
- data/lib/shoulda/matchers/action_controller/respond_with_content_type_matcher.rb +5 -2
- data/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +2 -2
- data/lib/shoulda/matchers/action_controller/route_matcher.rb +12 -12
- data/lib/shoulda/matchers/action_controller/set_session_matcher.rb +3 -4
- data/lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb +10 -11
- data/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb +121 -0
- data/lib/shoulda/matchers/action_mailer/have_sent_email_matcher.rb +7 -4
- data/lib/shoulda/matchers/active_model.rb +1 -1
- data/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb +8 -8
- data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +5 -4
- data/lib/shoulda/matchers/active_model/disallow_value_matcher.rb +3 -3
- data/lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb +2 -2
- data/lib/shoulda/matchers/active_model/exception_message_finder.rb +0 -1
- data/lib/shoulda/matchers/active_model/helpers.rb +16 -7
- data/lib/shoulda/matchers/active_model/only_integer_matcher.rb +3 -3
- data/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +8 -6
- data/lib/shoulda/matchers/active_model/validate_format_of_matcher.rb +19 -10
- data/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +4 -4
- data/lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb +19 -21
- data/lib/shoulda/matchers/active_model/validation_matcher.rb +7 -7
- data/lib/shoulda/matchers/active_model/validation_message_finder.rb +1 -1
- data/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb +5 -5
- data/lib/shoulda/matchers/active_record/association_matcher.rb +3 -3
- data/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +11 -7
- data/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +2 -2
- data/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +5 -5
- data/lib/shoulda/matchers/active_record/query_the_database_matcher.rb +5 -2
- data/lib/shoulda/matchers/active_record/serialize_matcher.rb +3 -3
- data/lib/shoulda/matchers/assertion_error.rb +4 -1
- data/lib/shoulda/matchers/independent/delegate_matcher.rb +17 -7
- data/lib/shoulda/matchers/integrations/rspec.rb +19 -33
- data/lib/shoulda/matchers/version.rb +1 -1
- data/shoulda-matchers.gemspec +6 -4
- data/spec/shoulda/matchers/action_controller/assign_to_matcher_spec.rb +66 -0
- data/spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +22 -0
- data/spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +42 -0
- data/spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb +78 -0
- data/spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +58 -0
- data/spec/shoulda/matchers/action_controller/respond_with_content_type_matcher_spec.rb +31 -0
- data/spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +31 -0
- data/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +65 -0
- data/spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb +51 -0
- data/spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb +153 -0
- data/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb +142 -0
- data/spec/shoulda/matchers/action_mailer/have_sent_email_spec.rb +324 -0
- data/spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +111 -0
- data/spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb +124 -0
- data/spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +43 -0
- data/spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb +74 -0
- data/spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb +171 -0
- data/spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb +113 -0
- data/spec/shoulda/{active_model → matchers/active_model}/exception_message_finder_spec.rb +2 -2
- data/spec/shoulda/matchers/active_model/helpers_spec.rb +158 -0
- data/spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb +52 -0
- data/spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +41 -0
- data/spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +41 -0
- data/spec/shoulda/matchers/active_model/validate_format_of_matcher_spec.rb +75 -0
- data/spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +73 -0
- data/spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +127 -0
- data/spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb +175 -0
- data/spec/shoulda/{active_model → matchers/active_model}/validation_message_finder_spec.rb +0 -1
- data/spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +106 -0
- data/spec/shoulda/matchers/active_record/association_matcher_spec.rb +534 -0
- data/spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +111 -0
- data/spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +78 -0
- data/spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +41 -0
- data/spec/shoulda/{active_record → matchers/active_record}/query_the_database_matcher_spec.rb +10 -10
- data/spec/shoulda/matchers/active_record/serialize_matcher_spec.rb +86 -0
- data/spec/shoulda/{independent → matchers/independent}/delegate_matcher_spec.rb +55 -34
- data/spec/spec_helper.rb +1 -2
- data/spec/support/active_model_versions.rb +4 -0
- data/spec/support/activemodel_helpers.rb +19 -0
- data/spec/support/controller_builder.rb +38 -12
- data/spec/support/model_builder.rb +8 -2
- metadata +106 -98
- data/spec/fixtures/addresses.yml +0 -3
- data/spec/fixtures/friendships.yml +0 -0
- data/spec/fixtures/posts.yml +0 -5
- data/spec/fixtures/products.yml +0 -0
- data/spec/fixtures/taggings.yml +0 -0
- data/spec/fixtures/tags.yml +0 -9
- data/spec/fixtures/users.yml +0 -6
- data/spec/shoulda/action_controller/assign_to_matcher_spec.rb +0 -63
- data/spec/shoulda/action_controller/filter_param_matcher_spec.rb +0 -20
- data/spec/shoulda/action_controller/redirect_to_matcher_spec.rb +0 -40
- data/spec/shoulda/action_controller/render_template_matcher_spec.rb +0 -69
- data/spec/shoulda/action_controller/render_with_layout_matcher_spec.rb +0 -55
- data/spec/shoulda/action_controller/respond_with_content_type_matcher_spec.rb +0 -28
- data/spec/shoulda/action_controller/respond_with_matcher_spec.rb +0 -83
- data/spec/shoulda/action_controller/route_matcher_spec.rb +0 -65
- data/spec/shoulda/action_controller/set_session_matcher_spec.rb +0 -46
- data/spec/shoulda/action_controller/set_the_flash_matcher_spec.rb +0 -130
- data/spec/shoulda/action_mailer/have_sent_email_spec.rb +0 -333
- data/spec/shoulda/active_model/allow_mass_assignment_of_matcher_spec.rb +0 -115
- data/spec/shoulda/active_model/allow_value_matcher_spec.rb +0 -131
- data/spec/shoulda/active_model/disallow_value_matcher_spec.rb +0 -65
- data/spec/shoulda/active_model/ensure_exclusion_of_matcher_spec.rb +0 -79
- data/spec/shoulda/active_model/ensure_inclusion_of_matcher_spec.rb +0 -181
- data/spec/shoulda/active_model/ensure_length_of_matcher_spec.rb +0 -138
- data/spec/shoulda/active_model/helpers_spec.rb +0 -129
- data/spec/shoulda/active_model/only_integer_matcher_spec.rb +0 -69
- data/spec/shoulda/active_model/validate_acceptance_of_matcher_spec.rb +0 -43
- data/spec/shoulda/active_model/validate_confirmation_of_matcher_spec.rb +0 -48
- data/spec/shoulda/active_model/validate_format_of_matcher_spec.rb +0 -79
- data/spec/shoulda/active_model/validate_numericality_of_matcher_spec.rb +0 -112
- data/spec/shoulda/active_model/validate_presence_of_matcher_spec.rb +0 -135
- data/spec/shoulda/active_model/validate_uniqueness_of_matcher_spec.rb +0 -154
- data/spec/shoulda/active_record/accept_nested_attributes_for_matcher_spec.rb +0 -84
- data/spec/shoulda/active_record/association_matcher_spec.rb +0 -642
- data/spec/shoulda/active_record/have_db_column_matcher_spec.rb +0 -185
- data/spec/shoulda/active_record/have_db_index_matcher_spec.rb +0 -105
- data/spec/shoulda/active_record/have_readonly_attributes_matcher_spec.rb +0 -46
- data/spec/shoulda/active_record/serialize_matcher_spec.rb +0 -81
data/spec/spec_helper.rb
CHANGED
@@ -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(
|
22
|
+
ActiveRecord::Migrator.migrate(Rails.root.join('db/migrate'))
|
24
23
|
|
25
24
|
RSpec.configure do |config|
|
26
25
|
config.mock_with :mocha
|
@@ -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
|
-
|
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
|
-
|
39
|
+
get 'examples', :to => "examples##{action}"
|
40
40
|
end
|
41
41
|
|
42
|
-
create_view("examples/#{action}.html.erb",
|
43
|
-
create_view("examples/#{partial}.html.erb",
|
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
|
47
|
-
@response
|
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
|
+
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:
|
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.
|
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.
|
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
|
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
|
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
|
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
|
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/
|
238
|
-
- spec/
|
239
|
-
- spec/
|
240
|
-
- spec/
|
241
|
-
- spec/
|
242
|
-
- spec/
|
243
|
-
- spec/
|
244
|
-
- spec/shoulda/action_controller/
|
245
|
-
- spec/shoulda/action_controller/
|
246
|
-
- spec/shoulda/action_controller/
|
247
|
-
- spec/shoulda/action_controller/
|
248
|
-
- spec/shoulda/
|
249
|
-
- spec/shoulda/
|
250
|
-
- spec/shoulda/
|
251
|
-
- spec/shoulda/
|
252
|
-
- spec/shoulda/
|
253
|
-
- spec/shoulda/
|
254
|
-
- spec/shoulda/
|
255
|
-
- spec/shoulda/active_model/
|
256
|
-
- spec/shoulda/active_model/
|
257
|
-
- spec/shoulda/active_model/
|
258
|
-
- spec/shoulda/active_model/
|
259
|
-
- spec/shoulda/active_model/
|
260
|
-
- spec/shoulda/active_model/
|
261
|
-
- spec/shoulda/active_model/
|
262
|
-
- spec/shoulda/active_model/
|
263
|
-
- spec/shoulda/active_model/
|
264
|
-
- spec/shoulda/active_model/
|
265
|
-
- spec/shoulda/
|
266
|
-
- spec/shoulda/
|
267
|
-
- spec/shoulda/
|
268
|
-
- spec/shoulda/
|
269
|
-
- spec/shoulda/
|
270
|
-
- spec/shoulda/
|
271
|
-
- spec/shoulda/active_record/
|
272
|
-
- spec/shoulda/
|
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:
|
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:
|
321
|
+
hash: -1249143589837050038
|
309
322
|
requirements: []
|
310
323
|
rubyforge_project:
|
311
|
-
rubygems_version: 1.8.
|
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/
|
320
|
-
- spec/
|
321
|
-
- spec/
|
322
|
-
- spec/
|
323
|
-
- spec/
|
324
|
-
- spec/
|
325
|
-
- spec/
|
326
|
-
- spec/shoulda/action_controller/
|
327
|
-
- spec/shoulda/action_controller/
|
328
|
-
- spec/shoulda/action_controller/
|
329
|
-
- spec/shoulda/action_controller/
|
330
|
-
- spec/shoulda/
|
331
|
-
- spec/shoulda/
|
332
|
-
- spec/shoulda/
|
333
|
-
- spec/shoulda/
|
334
|
-
- spec/shoulda/
|
335
|
-
- spec/shoulda/
|
336
|
-
- spec/shoulda/
|
337
|
-
- spec/shoulda/active_model/
|
338
|
-
- spec/shoulda/active_model/
|
339
|
-
- spec/shoulda/active_model/
|
340
|
-
- spec/shoulda/active_model/
|
341
|
-
- spec/shoulda/active_model/
|
342
|
-
- spec/shoulda/active_model/
|
343
|
-
- spec/shoulda/active_model/
|
344
|
-
- spec/shoulda/active_model/
|
345
|
-
- spec/shoulda/active_model/
|
346
|
-
- spec/shoulda/active_model/
|
347
|
-
- spec/shoulda/
|
348
|
-
- spec/shoulda/
|
349
|
-
- spec/shoulda/
|
350
|
-
- spec/shoulda/
|
351
|
-
- spec/shoulda/
|
352
|
-
- spec/shoulda/
|
353
|
-
- spec/shoulda/active_record/
|
354
|
-
- spec/shoulda/
|
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
|