shoulda-matchers 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/.gitignore +8 -7
  2. data/.travis.yml +4 -0
  3. data/Appraisals +8 -0
  4. data/CONTRIBUTING.md +1 -1
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +77 -66
  7. data/MIT-LICENSE +1 -1
  8. data/NEWS.md +63 -1
  9. data/README.md +189 -33
  10. data/Rakefile +6 -5
  11. data/features/rails_integration.feature +1 -1
  12. data/features/step_definitions/rails_steps.rb +7 -6
  13. data/gemfiles/3.0.gemfile +2 -2
  14. data/gemfiles/3.0.gemfile.lock +14 -5
  15. data/gemfiles/3.1.gemfile +2 -2
  16. data/gemfiles/3.1.gemfile.lock +14 -5
  17. data/gemfiles/3.2.gemfile +2 -2
  18. data/gemfiles/3.2.gemfile.lock +16 -7
  19. data/gemfiles/4.0.0.gemfile +2 -2
  20. data/gemfiles/4.0.0.gemfile.lock +15 -6
  21. data/gemfiles/4.0.1.gemfile +2 -2
  22. data/gemfiles/4.0.1.gemfile.lock +15 -6
  23. data/gemfiles/4.1.gemfile +19 -0
  24. data/gemfiles/4.1.gemfile.lock +176 -0
  25. data/lib/shoulda/matchers.rb +17 -1
  26. data/lib/shoulda/matchers/action_controller.rb +4 -2
  27. data/lib/shoulda/matchers/action_controller/callback_matcher.rb +100 -0
  28. data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +1 -1
  29. data/lib/shoulda/matchers/action_controller/render_template_matcher.rb +4 -4
  30. data/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb +1 -1
  31. data/lib/shoulda/matchers/action_controller/route_matcher.rb +12 -12
  32. data/lib/shoulda/matchers/action_controller/route_params.rb +1 -1
  33. data/lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb +2 -1
  34. data/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb +167 -0
  35. data/lib/shoulda/matchers/active_model.rb +4 -2
  36. data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +23 -5
  37. data/lib/shoulda/matchers/active_model/disallow_value_matcher.rb +0 -4
  38. data/lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb +66 -14
  39. data/lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb +8 -8
  40. data/lib/shoulda/matchers/active_model/errors.rb +40 -0
  41. data/lib/shoulda/matchers/active_model/helpers.rb +6 -6
  42. data/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb +33 -14
  43. data/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb +26 -0
  44. data/lib/shoulda/matchers/active_model/numericality_matchers/{odd_even_number_matcher.rb → numeric_type_matcher.rb} +9 -20
  45. data/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb +26 -0
  46. data/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb +5 -21
  47. data/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +1 -1
  48. data/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +71 -22
  49. data/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +6 -1
  50. data/lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb +25 -6
  51. data/lib/shoulda/matchers/active_record.rb +1 -0
  52. data/lib/shoulda/matchers/active_record/association_matcher.rb +67 -13
  53. data/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb +40 -0
  54. data/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb +24 -1
  55. data/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb +1 -1
  56. data/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +1 -1
  57. data/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +1 -1
  58. data/lib/shoulda/matchers/assertion_error.rb +7 -2
  59. data/lib/shoulda/matchers/error.rb +24 -0
  60. data/lib/shoulda/matchers/independent.rb +10 -0
  61. data/lib/shoulda/matchers/independent/delegate_matcher.rb +157 -0
  62. data/lib/shoulda/matchers/independent/delegate_matcher/stubbed_target.rb +34 -0
  63. data/lib/shoulda/matchers/integrations/nunit_test_case_detection.rb +36 -0
  64. data/lib/shoulda/matchers/integrations/rspec.rb +13 -14
  65. data/lib/shoulda/matchers/integrations/test_unit.rb +11 -9
  66. data/lib/shoulda/matchers/version.rb +1 -1
  67. data/lib/shoulda/matchers/warn.rb +7 -0
  68. data/shoulda-matchers.gemspec +2 -1
  69. data/spec/shoulda/matchers/action_controller/callback_matcher_spec.rb +79 -0
  70. data/spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +3 -3
  71. data/spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +11 -11
  72. data/spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb +21 -21
  73. data/spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +10 -10
  74. data/spec/shoulda/matchers/action_controller/rescue_from_matcher_spec.rb +45 -18
  75. data/spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +8 -8
  76. data/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +19 -19
  77. data/spec/shoulda/matchers/action_controller/route_params_spec.rb +6 -6
  78. data/spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb +11 -11
  79. data/spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb +44 -44
  80. data/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb +205 -0
  81. data/spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +24 -24
  82. data/spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb +37 -37
  83. data/spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +17 -21
  84. data/spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb +24 -24
  85. data/spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb +173 -67
  86. data/spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb +40 -40
  87. data/spec/shoulda/matchers/active_model/exception_message_finder_spec.rb +20 -20
  88. data/spec/shoulda/matchers/active_model/helpers_spec.rb +27 -25
  89. data/spec/shoulda/matchers/active_model/numericality_matchers/comparison_matcher_spec.rb +126 -13
  90. data/spec/shoulda/matchers/active_model/numericality_matchers/even_number_matcher_spec.rb +59 -0
  91. data/spec/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher_spec.rb +59 -0
  92. data/spec/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher_spec.rb +27 -26
  93. data/spec/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb +15 -15
  94. data/spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +8 -8
  95. data/spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +9 -9
  96. data/spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +229 -44
  97. data/spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +44 -25
  98. data/spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb +110 -62
  99. data/spec/shoulda/matchers/active_model/validation_message_finder_spec.rb +19 -19
  100. data/spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +30 -30
  101. data/spec/shoulda/matchers/active_record/association_matcher_spec.rb +378 -192
  102. data/spec/shoulda/matchers/active_record/association_matchers/model_reflection_spec.rb +4 -0
  103. data/spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +33 -33
  104. data/spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +21 -17
  105. data/spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +8 -8
  106. data/spec/shoulda/matchers/active_record/serialize_matcher_spec.rb +14 -14
  107. data/spec/shoulda/matchers/independent/delegate_matcher/stubbed_target_spec.rb +43 -0
  108. data/spec/shoulda/matchers/independent/delegate_matcher_spec.rb +184 -0
  109. data/spec/spec_helper.rb +4 -0
  110. data/spec/support/activemodel_helpers.rb +2 -2
  111. data/spec/support/capture_helpers.rb +19 -0
  112. data/spec/support/controller_builder.rb +22 -3
  113. data/spec/support/fail_with_message_including_matcher.rb +33 -0
  114. data/spec/support/model_builder.rb +1 -1
  115. data/spec/support/shared_examples/numerical_submatcher.rb +19 -0
  116. data/spec/support/shared_examples/numerical_type_submatcher.rb +17 -0
  117. data/spec/support/test_application.rb +23 -0
  118. metadata +90 -22
  119. checksums.yaml +0 -7
  120. data/spec/shoulda/matchers/active_model/numericality_matchers/odd_even_number_matcher_spec.rb +0 -97
  121. data/spec/support/shared_examples/numerical_submatcher_spec.rb +0 -23
data/Rakefile CHANGED
@@ -15,14 +15,15 @@ Cucumber::Rake::Task.new do |t|
15
15
  t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
16
16
  end
17
17
 
18
- task :default do |t|
18
+ task :default do
19
19
  if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
20
- exec 'rake spec cucumber'
20
+ Rake::Task['spec'].invoke
21
+ Rake::Task['cucumber'].invoke
21
22
  else
22
- Rake::Task['appraise'].execute
23
+ Rake::Task['appraise'].invoke
23
24
  end
24
25
  end
25
26
 
26
- task :appraise => ['appraisal:install'] do |t|
27
- exec 'rake appraisal'
27
+ task :appraise do
28
+ exec 'appraisal install && appraisal rake'
28
29
  end
@@ -12,7 +12,7 @@ Feature: integrate with Rails
12
12
  end
13
13
  end
14
14
  """
15
- When I successfully run `bundle exec rake db:migrate --trace`
15
+ When I successfully run `bundle exec rake db:migrate db:test:prepare --trace`
16
16
  And I write to "app/models/user.rb" with:
17
17
  """
18
18
  class User < ActiveRecord::Base
@@ -33,14 +33,14 @@ When 'I generate a new rails application' do
33
33
  end
34
34
 
35
35
  When /^I configure the application to use "([^\"]+)" from this project$/ do |name|
36
- append_to_gemfile "gem '#{name}', :path => '#{PROJECT_ROOT}'"
36
+ append_to_gemfile "gem '#{name}', path: '#{PROJECT_ROOT}'"
37
37
  steps %{And I install gems}
38
38
  end
39
39
 
40
40
  When /^I configure the application to use "([^\"]+)" from this project in test and development$/ do |name|
41
41
  append_to_gemfile <<-GEMFILE
42
42
  group :test, :development do
43
- gem '#{name}', :path => '#{PROJECT_ROOT}'
43
+ gem '#{name}', path: '#{PROJECT_ROOT}'
44
44
  end
45
45
  GEMFILE
46
46
  steps %{And I install gems}
@@ -67,7 +67,8 @@ When 'I configure the application to use rspec-rails in test and development' do
67
67
  end
68
68
 
69
69
  When 'I configure the application to use shoulda-context' do
70
- append_to_gemfile %q(gem 'shoulda-context', '~> 1.0')
70
+ append_to_gemfile %q(gem 'shoulda-context', '~> 1.2.0')
71
+ append_to_gemfile %q(gem 'pry')
71
72
  steps %{And I install gems}
72
73
  end
73
74
 
@@ -112,7 +113,7 @@ Then /^the output should indicate that (\d+) tests? (?:was|were) run/ do |number
112
113
  # Rails 4 has slightly different output than Rails 3 due to
113
114
  # Test::Unit::TestCase -> MiniTest
114
115
  if rails_4?
115
- steps %{Then the output should contain "#{number} tests, #{number} assertions, 0 failures, 0 errors, 0 skips"}
116
+ steps %{Then the output should match /#{number} (tests|runs), #{number} assertions, 0 failures, 0 errors, 0 skips/}
116
117
  else
117
118
  steps %{Then the output should contain "#{number} tests, #{number} assertions, 0 failures, 0 errors"}
118
119
  end
@@ -125,7 +126,7 @@ Then /^the output should indicate that (\d+) unit and (\d+) functional tests? we
125
126
  # Rails 3 runs separate test suites in separate processes, but Rails 4 does
126
127
  # not, so that's why we have to check for different things here
127
128
  if rails_4?
128
- steps %{Then the output should contain "#{total} tests, #{total} assertions, 0 failures, 0 errors, 0 skips"}
129
+ steps %{Then the output should match /#{total} (tests|runs), #{total} assertions, 0 failures, 0 errors, 0 skips/}
129
130
  else
130
131
  steps %{Then the output should match /#{n1} tests, #{n1} assertions, 0 failures, 0 errors.+#{n2} tests, #{n2} assertions, 0 failures, 0 errors/}
131
132
  end
@@ -154,7 +155,7 @@ module FileHelpers
154
155
  end
155
156
 
156
157
  def rails_4?
157
- match = ORIGINAL_BUNDLE_VARS['BUNDLE_GEMFILE'].match(/(\d)\.\d\.(\d\.)?gemfile$/)
158
+ match = ORIGINAL_BUNDLE_VARS['BUNDLE_GEMFILE'].match(/(\d)\.\d\.(\d\.)?(\w+\.)?gemfile$/)
158
159
  match.captures[0] == '4'
159
160
  end
160
161
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "shoulda-context", "~> 1.1.2"
5
+ gem "shoulda-context", "~> 1.2.0"
6
6
  gem "sqlite3", :platform=>:ruby
7
7
  gem "activerecord-jdbc-adapter", :platform=>:jruby
8
8
  gem "activerecord-jdbcsqlite3-adapter", :platform=>:jruby
@@ -12,4 +12,4 @@ gem "therubyrhino", :platform=>:jruby
12
12
  gem "rails", "~> 3.0.17"
13
13
  gem "strong_parameters"
14
14
 
15
- gemspec :path=>"../"
15
+ gemspec :path=>".././"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- shoulda-matchers (2.5.0)
4
+ shoulda-matchers (2.6.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -34,9 +34,10 @@ GEM
34
34
  activemodel (= 3.0.20)
35
35
  activesupport (= 3.0.20)
36
36
  activesupport (3.0.20)
37
- appraisal (0.5.1)
37
+ appraisal (1.0.0.beta2)
38
38
  bundler
39
39
  rake
40
+ thor (>= 0.14.0)
40
41
  arel (2.0.10)
41
42
  aruba (0.5.1)
42
43
  childprocess (~> 0.3.6)
@@ -47,6 +48,7 @@ GEM
47
48
  builder (2.1.2)
48
49
  childprocess (0.3.9)
49
50
  ffi (~> 1.0, >= 1.0.11)
51
+ coderay (1.1.0)
50
52
  cucumber (1.2.3)
51
53
  builder (>= 2.1.2)
52
54
  diff-lcs (>= 1.1.3)
@@ -66,11 +68,16 @@ GEM
66
68
  mime-types (~> 1.16)
67
69
  treetop (~> 1.4.8)
68
70
  metaclass (0.0.1)
71
+ method_source (0.8.2)
69
72
  mime-types (1.21)
70
73
  mocha (0.13.3)
71
74
  metaclass (~> 0.0.1)
72
75
  multi_json (1.7.1)
73
76
  polyglot (0.3.3)
77
+ pry (0.9.12.6)
78
+ coderay (~> 1.0)
79
+ method_source (~> 0.8)
80
+ slop (~> 3.4)
74
81
  rack (1.2.8)
75
82
  rack-mount (0.6.14)
76
83
  rack (>= 1.0.0)
@@ -104,7 +111,8 @@ GEM
104
111
  rspec-core (~> 2.13.0)
105
112
  rspec-expectations (~> 2.13.0)
106
113
  rspec-mocks (~> 2.13.0)
107
- shoulda-context (1.1.4)
114
+ shoulda-context (1.2.0)
115
+ slop (3.4.7)
108
116
  sqlite3 (1.3.7)
109
117
  strong_parameters (0.2.0)
110
118
  actionpack (~> 3.0)
@@ -122,17 +130,18 @@ PLATFORMS
122
130
  DEPENDENCIES
123
131
  activerecord-jdbc-adapter
124
132
  activerecord-jdbcsqlite3-adapter
125
- appraisal (~> 0.4)
133
+ appraisal (~> 1.0.0.beta2)
126
134
  aruba
127
135
  bourne (~> 1.3)
128
136
  bundler (~> 1.1)
129
137
  cucumber (~> 1.1)
130
138
  jdbc-sqlite3
131
139
  jruby-openssl
140
+ pry
132
141
  rails (~> 3.0.17)
133
142
  rake (>= 0.9.2)
134
143
  rspec-rails (>= 2.13.1, < 3)
135
- shoulda-context (~> 1.1.2)
144
+ shoulda-context (~> 1.2.0)
136
145
  shoulda-matchers!
137
146
  sqlite3
138
147
  strong_parameters
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "shoulda-context", "~> 1.1.2"
5
+ gem "shoulda-context", "~> 1.2.0"
6
6
  gem "sqlite3", :platform=>:ruby
7
7
  gem "activerecord-jdbc-adapter", :platform=>:jruby
8
8
  gem "activerecord-jdbcsqlite3-adapter", :platform=>:jruby
@@ -15,4 +15,4 @@ gem "jquery-rails"
15
15
  gem "sass-rails"
16
16
  gem "strong_parameters"
17
17
 
18
- gemspec :path=>"../"
18
+ gemspec :path=>".././"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- shoulda-matchers (2.5.0)
4
+ shoulda-matchers (2.6.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -35,9 +35,10 @@ GEM
35
35
  activesupport (= 3.1.11)
36
36
  activesupport (3.1.11)
37
37
  multi_json (~> 1.0)
38
- appraisal (0.5.1)
38
+ appraisal (1.0.0.beta2)
39
39
  bundler
40
40
  rake
41
+ thor (>= 0.14.0)
41
42
  arel (2.2.3)
42
43
  aruba (0.5.1)
43
44
  childprocess (~> 0.3.6)
@@ -49,6 +50,7 @@ GEM
49
50
  builder (3.0.4)
50
51
  childprocess (0.3.9)
51
52
  ffi (~> 1.0, >= 1.0.11)
53
+ coderay (1.1.0)
52
54
  cucumber (1.2.3)
53
55
  builder (>= 2.1.2)
54
56
  diff-lcs (>= 1.1.3)
@@ -70,11 +72,16 @@ GEM
70
72
  mime-types (~> 1.16)
71
73
  treetop (~> 1.4.8)
72
74
  metaclass (0.0.1)
75
+ method_source (0.8.2)
73
76
  mime-types (1.21)
74
77
  mocha (0.13.3)
75
78
  metaclass (~> 0.0.1)
76
79
  multi_json (1.7.1)
77
80
  polyglot (0.3.3)
81
+ pry (0.9.12.6)
82
+ coderay (~> 1.0)
83
+ method_source (~> 0.8)
84
+ slop (~> 3.4)
78
85
  rack (1.3.10)
79
86
  rack-cache (1.2)
80
87
  rack (>= 0.4)
@@ -119,7 +126,8 @@ GEM
119
126
  railties (~> 3.1.0)
120
127
  sass (>= 3.1.10)
121
128
  tilt (~> 1.3.2)
122
- shoulda-context (1.1.4)
129
+ shoulda-context (1.2.0)
130
+ slop (3.4.7)
123
131
  sprockets (2.0.4)
124
132
  hike (~> 1.2)
125
133
  rack (~> 1.0)
@@ -142,7 +150,7 @@ PLATFORMS
142
150
  DEPENDENCIES
143
151
  activerecord-jdbc-adapter
144
152
  activerecord-jdbcsqlite3-adapter
145
- appraisal (~> 0.4)
153
+ appraisal (~> 1.0.0.beta2)
146
154
  aruba
147
155
  bcrypt-ruby (~> 3.0.0)
148
156
  bourne (~> 1.3)
@@ -151,11 +159,12 @@ DEPENDENCIES
151
159
  jdbc-sqlite3
152
160
  jquery-rails
153
161
  jruby-openssl
162
+ pry
154
163
  rails (~> 3.1.8)
155
164
  rake (>= 0.9.2)
156
165
  rspec-rails (>= 2.13.1, < 3)
157
166
  sass-rails
158
- shoulda-context (~> 1.1.2)
167
+ shoulda-context (~> 1.2.0)
159
168
  shoulda-matchers!
160
169
  sqlite3
161
170
  strong_parameters
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "shoulda-context", "~> 1.1.2"
5
+ gem "shoulda-context", "~> 1.2.0"
6
6
  gem "sqlite3", :platform=>:ruby
7
7
  gem "activerecord-jdbc-adapter", :platform=>:jruby
8
8
  gem "activerecord-jdbcsqlite3-adapter", :platform=>:jruby
@@ -15,4 +15,4 @@ gem "jquery-rails"
15
15
  gem "sass-rails"
16
16
  gem "strong_parameters"
17
17
 
18
- gemspec :path=>"../"
18
+ gemspec :path=>".././"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- shoulda-matchers (2.5.0)
4
+ shoulda-matchers (2.6.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -34,9 +34,10 @@ GEM
34
34
  activesupport (3.2.13)
35
35
  i18n (= 0.6.1)
36
36
  multi_json (~> 1.0)
37
- appraisal (0.5.1)
37
+ appraisal (1.0.0.beta2)
38
38
  bundler
39
39
  rake
40
+ thor (>= 0.14.0)
40
41
  arel (3.0.2)
41
42
  aruba (0.5.1)
42
43
  childprocess (~> 0.3.6)
@@ -48,6 +49,7 @@ GEM
48
49
  builder (3.0.4)
49
50
  childprocess (0.3.9)
50
51
  ffi (~> 1.0, >= 1.0.11)
52
+ coderay (1.1.0)
51
53
  cucumber (1.2.3)
52
54
  builder (>= 2.1.2)
53
55
  diff-lcs (>= 1.1.3)
@@ -70,11 +72,16 @@ GEM
70
72
  mime-types (~> 1.16)
71
73
  treetop (~> 1.4.8)
72
74
  metaclass (0.0.1)
75
+ method_source (0.8.2)
73
76
  mime-types (1.21)
74
77
  mocha (0.13.3)
75
78
  metaclass (~> 0.0.1)
76
79
  multi_json (1.7.1)
77
80
  polyglot (0.3.3)
81
+ pry (0.9.12.6)
82
+ coderay (~> 1.0)
83
+ method_source (~> 0.8)
84
+ slop (~> 3.4)
78
85
  rack (1.4.5)
79
86
  rack-cache (1.2)
80
87
  rack (>= 0.4)
@@ -97,7 +104,7 @@ GEM
97
104
  rake (>= 0.8.7)
98
105
  rdoc (~> 3.4)
99
106
  thor (>= 0.14.6, < 2.0)
100
- rake (10.0.3)
107
+ rake (10.1.1)
101
108
  rdoc (3.12.2)
102
109
  json (~> 1.4)
103
110
  rspec-core (2.13.1)
@@ -116,7 +123,8 @@ GEM
116
123
  railties (~> 3.2.0)
117
124
  sass (>= 3.1.10)
118
125
  tilt (~> 1.3)
119
- shoulda-context (1.1.4)
126
+ shoulda-context (1.2.0)
127
+ slop (3.4.7)
120
128
  sprockets (2.2.2)
121
129
  hike (~> 1.2)
122
130
  multi_json (~> 1.0)
@@ -127,7 +135,7 @@ GEM
127
135
  actionpack (~> 3.0)
128
136
  activemodel (~> 3.0)
129
137
  railties (~> 3.0)
130
- thor (0.17.0)
138
+ thor (0.18.1)
131
139
  tilt (1.3.6)
132
140
  treetop (1.4.12)
133
141
  polyglot
@@ -140,7 +148,7 @@ PLATFORMS
140
148
  DEPENDENCIES
141
149
  activerecord-jdbc-adapter
142
150
  activerecord-jdbcsqlite3-adapter
143
- appraisal (~> 0.4)
151
+ appraisal (~> 1.0.0.beta2)
144
152
  aruba
145
153
  bcrypt-ruby (~> 3.0.0)
146
154
  bourne (~> 1.3)
@@ -149,11 +157,12 @@ DEPENDENCIES
149
157
  jdbc-sqlite3
150
158
  jquery-rails
151
159
  jruby-openssl
160
+ pry
152
161
  rails (~> 3.2.13)
153
162
  rake (>= 0.9.2)
154
163
  rspec-rails (>= 2.13.1, < 3)
155
164
  sass-rails
156
- shoulda-context (~> 1.1.2)
165
+ shoulda-context (~> 1.2.0)
157
166
  shoulda-matchers!
158
167
  sqlite3
159
168
  strong_parameters
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "shoulda-context", "~> 1.1.2"
5
+ gem "shoulda-context", "~> 1.2.0"
6
6
  gem "sqlite3", :platform=>:ruby
7
7
  gem "activerecord-jdbc-adapter", :platform=>:jruby
8
8
  gem "activerecord-jdbcsqlite3-adapter", :platform=>:jruby
@@ -16,4 +16,4 @@ gem "rails", "4.0.0"
16
16
  gem "sass-rails", "4.0.0"
17
17
  gem "bcrypt-ruby", "~> 3.0.0"
18
18
 
19
- gemspec :path=>"../"
19
+ gemspec :path=>".././"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- shoulda-matchers (2.5.0)
4
+ shoulda-matchers (2.6.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -35,9 +35,10 @@ GEM
35
35
  multi_json (~> 1.3)
36
36
  thread_safe (~> 0.1)
37
37
  tzinfo (~> 0.3.37)
38
- appraisal (0.5.2)
38
+ appraisal (1.0.0.beta2)
39
39
  bundler
40
40
  rake
41
+ thor (>= 0.14.0)
41
42
  arel (4.0.1)
42
43
  aruba (0.5.3)
43
44
  childprocess (>= 0.3.6)
@@ -50,6 +51,7 @@ GEM
50
51
  builder (3.1.4)
51
52
  childprocess (0.3.9)
52
53
  ffi (~> 1.0, >= 1.0.11)
54
+ coderay (1.1.0)
53
55
  cucumber (1.3.10)
54
56
  builder (>= 2.1.2)
55
57
  diff-lcs (>= 1.1.3)
@@ -70,6 +72,7 @@ GEM
70
72
  mime-types (~> 1.16)
71
73
  treetop (~> 1.4.8)
72
74
  metaclass (0.0.1)
75
+ method_source (0.8.2)
73
76
  mime-types (1.25.1)
74
77
  minitest (4.7.5)
75
78
  mocha (0.14.0)
@@ -79,6 +82,10 @@ GEM
79
82
  polyglot (0.3.3)
80
83
  protected_attributes (1.0.3)
81
84
  activemodel (>= 4.0.0, < 5.0)
85
+ pry (0.9.12.6)
86
+ coderay (~> 1.0)
87
+ method_source (~> 0.8)
88
+ slop (~> 3.4)
82
89
  rack (1.5.2)
83
90
  rack-test (0.6.2)
84
91
  rack (>= 1.0)
@@ -97,7 +104,7 @@ GEM
97
104
  activesupport (= 4.0.0)
98
105
  rake (>= 0.8.7)
99
106
  thor (>= 0.18.1, < 2.0)
100
- rake (10.1.0)
107
+ rake (10.1.1)
101
108
  rspec-core (2.14.7)
102
109
  rspec-expectations (2.14.4)
103
110
  diff-lcs (>= 1.1.3, < 2.0)
@@ -114,7 +121,8 @@ GEM
114
121
  railties (>= 4.0.0.beta, < 5.0)
115
122
  sass (>= 3.1.10)
116
123
  sprockets-rails (~> 2.0.0)
117
- shoulda-context (1.1.6)
124
+ shoulda-context (1.2.0)
125
+ slop (3.4.7)
118
126
  sprockets (2.10.1)
119
127
  hike (~> 1.2)
120
128
  multi_json (~> 1.0)
@@ -141,7 +149,7 @@ DEPENDENCIES
141
149
  activerecord-jdbc-adapter
142
150
  activerecord-jdbcsqlite3-adapter
143
151
  activeresource (= 4.0.0)
144
- appraisal (~> 0.4)
152
+ appraisal (~> 1.0.0.beta2)
145
153
  aruba
146
154
  bcrypt-ruby (~> 3.0.0)
147
155
  bourne (~> 1.3)
@@ -151,11 +159,12 @@ DEPENDENCIES
151
159
  jquery-rails
152
160
  jruby-openssl
153
161
  protected_attributes
162
+ pry
154
163
  rails (= 4.0.0)
155
164
  rake (>= 0.9.2)
156
165
  rspec-rails (>= 2.13.1, < 3)
157
166
  sass-rails (= 4.0.0)
158
- shoulda-context (~> 1.1.2)
167
+ shoulda-context (~> 1.2.0)
159
168
  shoulda-matchers!
160
169
  sqlite3
161
170
  therubyrhino