Commit 06b8e81e686c74af17b54f3191781ac606386330
1 parent
697d77ca
Exists in
colab
and in
4 other branches
shoulda-matchers updated
Showing
10 changed files
with
11 additions
and
11 deletions
Show diff stats
Gemfile
@@ -65,7 +65,7 @@ gem 'google-analytics-rails', '~> 0.0.6' | @@ -65,7 +65,7 @@ gem 'google-analytics-rails', '~> 0.0.6' | ||
65 | 65 | ||
66 | group :test do | 66 | group :test do |
67 | # Easier test writing | 67 | # Easier test writing |
68 | - gem "shoulda-matchers", '~> 2.7.0' | 68 | + gem "shoulda-matchers", '~> 2.8.0' |
69 | 69 | ||
70 | # Test coverage | 70 | # Test coverage |
71 | gem 'simplecov', require: false | 71 | gem 'simplecov', require: false |
Gemfile.lock
@@ -225,7 +225,7 @@ GEM | @@ -225,7 +225,7 @@ GEM | ||
225 | sdoc (0.4.1) | 225 | sdoc (0.4.1) |
226 | json (~> 1.7, >= 1.7.7) | 226 | json (~> 1.7, >= 1.7.7) |
227 | rdoc (~> 4.0) | 227 | rdoc (~> 4.0) |
228 | - shoulda-matchers (2.7.0) | 228 | + shoulda-matchers (2.8.0) |
229 | activesupport (>= 3.0.0) | 229 | activesupport (>= 3.0.0) |
230 | simplecov (0.9.1) | 230 | simplecov (0.9.1) |
231 | docile (~> 1.1.0) | 231 | docile (~> 1.1.0) |
@@ -304,7 +304,7 @@ DEPENDENCIES | @@ -304,7 +304,7 @@ DEPENDENCIES | ||
304 | rspec-rails (~> 3.2.0) | 304 | rspec-rails (~> 3.2.0) |
305 | sass-rails (~> 4.0.1) | 305 | sass-rails (~> 4.0.1) |
306 | sdoc | 306 | sdoc |
307 | - shoulda-matchers (~> 2.7.0) | 307 | + shoulda-matchers (~> 2.8.0) |
308 | simplecov | 308 | simplecov |
309 | spring | 309 | spring |
310 | sqlite3 | 310 | sqlite3 |
spec/controllers/compound_metric_configurations_controller_spec.rb
@@ -111,7 +111,7 @@ describe CompoundMetricConfigurationsController, :type => :controller do | @@ -111,7 +111,7 @@ describe CompoundMetricConfigurationsController, :type => :controller do | ||
111 | 111 | ||
112 | it { is_expected.to redirect_to(kalibro_configurations_path(kalibro_configuration.id)) } | 112 | it { is_expected.to redirect_to(kalibro_configurations_path(kalibro_configuration.id)) } |
113 | it { is_expected.to respond_with(:redirect) } | 113 | it { is_expected.to respond_with(:redirect) } |
114 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 114 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
115 | end | 115 | end |
116 | end | 116 | end |
117 | 117 |
spec/controllers/kalibro_configurations_controller_spec.rb
@@ -182,7 +182,7 @@ describe KalibroConfigurationsController, :type => :controller do | @@ -182,7 +182,7 @@ describe KalibroConfigurationsController, :type => :controller do | ||
182 | end | 182 | end |
183 | 183 | ||
184 | it { is_expected.to redirect_to(kalibro_configurations_path(@subject.id)) } | 184 | it { is_expected.to redirect_to(kalibro_configurations_path(@subject.id)) } |
185 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 185 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
186 | end | 186 | end |
187 | end | 187 | end |
188 | 188 |
spec/controllers/kalibro_ranges_controller_spec.rb
@@ -139,7 +139,7 @@ describe KalibroRangesController, :type => :controller do | @@ -139,7 +139,7 @@ describe KalibroRangesController, :type => :controller do | ||
139 | 139 | ||
140 | it { is_expected.to redirect_to(kalibro_configurations_url(metric_configuration.kalibro_configuration_id)) } | 140 | it { is_expected.to redirect_to(kalibro_configurations_url(metric_configuration.kalibro_configuration_id)) } |
141 | it { is_expected.to respond_with(:redirect) } | 141 | it { is_expected.to respond_with(:redirect) } |
142 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 142 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
143 | end | 143 | end |
144 | end | 144 | end |
145 | 145 |
spec/controllers/metric_configurations_controller_spec.rb
@@ -131,7 +131,7 @@ describe MetricConfigurationsController, :type => :controller do | @@ -131,7 +131,7 @@ describe MetricConfigurationsController, :type => :controller do | ||
131 | 131 | ||
132 | it { is_expected.to redirect_to(kalibro_configurations_path(metric_configuration.kalibro_configuration_id)) } | 132 | it { is_expected.to redirect_to(kalibro_configurations_path(metric_configuration.kalibro_configuration_id)) } |
133 | it { is_expected.to respond_with(:redirect) } | 133 | it { is_expected.to respond_with(:redirect) } |
134 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 134 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
135 | end | 135 | end |
136 | end | 136 | end |
137 | 137 |
spec/controllers/projects_controller_spec.rb
@@ -190,7 +190,7 @@ describe ProjectsController, :type => :controller do | @@ -190,7 +190,7 @@ describe ProjectsController, :type => :controller do | ||
190 | end | 190 | end |
191 | 191 | ||
192 | it { is_expected.to redirect_to(projects_path) } | 192 | it { is_expected.to redirect_to(projects_path) } |
193 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 193 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
194 | end | 194 | end |
195 | end | 195 | end |
196 | 196 |
spec/controllers/reading_groups_controller_spec.rb
@@ -175,7 +175,7 @@ describe ReadingGroupsController, :type => :controller do | @@ -175,7 +175,7 @@ describe ReadingGroupsController, :type => :controller do | ||
175 | end | 175 | end |
176 | 176 | ||
177 | it { is_expected.to redirect_to(reading_group_path) } | 177 | it { is_expected.to redirect_to(reading_group_path) } |
178 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 178 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
179 | end | 179 | end |
180 | end | 180 | end |
181 | 181 |
spec/controllers/readings_controller_spec.rb
@@ -88,7 +88,7 @@ describe ReadingsController, :type => :controller do | @@ -88,7 +88,7 @@ describe ReadingsController, :type => :controller do | ||
88 | 88 | ||
89 | it { is_expected.to redirect_to(reading_group_url(reading_group.id)) } | 89 | it { is_expected.to redirect_to(reading_group_url(reading_group.id)) } |
90 | it { is_expected.to respond_with(:redirect) } | 90 | it { is_expected.to respond_with(:redirect) } |
91 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 91 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
92 | end | 92 | end |
93 | end | 93 | end |
94 | 94 |
spec/controllers/repositories_controller_spec.rb
@@ -183,7 +183,7 @@ describe RepositoriesController, :type => :controller do | @@ -183,7 +183,7 @@ describe RepositoriesController, :type => :controller do | ||
183 | 183 | ||
184 | it { is_expected.to redirect_to(projects_url) } | 184 | it { is_expected.to redirect_to(projects_url) } |
185 | it { is_expected.to respond_with(:redirect) } | 185 | it { is_expected.to respond_with(:redirect) } |
186 | - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } | 186 | + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } |
187 | end | 187 | end |
188 | end | 188 | end |
189 | 189 |