From 06b8e81e686c74af17b54f3191781ac606386330 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Thu, 12 Feb 2015 09:05:25 -0200 Subject: [PATCH] shoulda-matchers updated --- Gemfile | 2 +- Gemfile.lock | 4 ++-- spec/controllers/compound_metric_configurations_controller_spec.rb | 2 +- spec/controllers/kalibro_configurations_controller_spec.rb | 2 +- spec/controllers/kalibro_ranges_controller_spec.rb | 2 +- spec/controllers/metric_configurations_controller_spec.rb | 2 +- spec/controllers/projects_controller_spec.rb | 2 +- spec/controllers/reading_groups_controller_spec.rb | 2 +- spec/controllers/readings_controller_spec.rb | 2 +- spec/controllers/repositories_controller_spec.rb | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Gemfile b/Gemfile index 6f3a46e..1ac00b1 100644 --- a/Gemfile +++ b/Gemfile @@ -65,7 +65,7 @@ gem 'google-analytics-rails', '~> 0.0.6' group :test do # Easier test writing - gem "shoulda-matchers", '~> 2.7.0' + gem "shoulda-matchers", '~> 2.8.0' # Test coverage gem 'simplecov', require: false diff --git a/Gemfile.lock b/Gemfile.lock index e97fa6d..bcb8796 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -225,7 +225,7 @@ GEM sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) - shoulda-matchers (2.7.0) + shoulda-matchers (2.8.0) activesupport (>= 3.0.0) simplecov (0.9.1) docile (~> 1.1.0) @@ -304,7 +304,7 @@ DEPENDENCIES rspec-rails (~> 3.2.0) sass-rails (~> 4.0.1) sdoc - shoulda-matchers (~> 2.7.0) + shoulda-matchers (~> 2.8.0) simplecov spring sqlite3 diff --git a/spec/controllers/compound_metric_configurations_controller_spec.rb b/spec/controllers/compound_metric_configurations_controller_spec.rb index 89725b0..b913ec3 100644 --- a/spec/controllers/compound_metric_configurations_controller_spec.rb +++ b/spec/controllers/compound_metric_configurations_controller_spec.rb @@ -111,7 +111,7 @@ describe CompoundMetricConfigurationsController, :type => :controller do it { is_expected.to redirect_to(kalibro_configurations_path(kalibro_configuration.id)) } it { is_expected.to respond_with(:redirect) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/kalibro_configurations_controller_spec.rb b/spec/controllers/kalibro_configurations_controller_spec.rb index 12bfeb0..1c9bbbe 100644 --- a/spec/controllers/kalibro_configurations_controller_spec.rb +++ b/spec/controllers/kalibro_configurations_controller_spec.rb @@ -182,7 +182,7 @@ describe KalibroConfigurationsController, :type => :controller do end it { is_expected.to redirect_to(kalibro_configurations_path(@subject.id)) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/kalibro_ranges_controller_spec.rb b/spec/controllers/kalibro_ranges_controller_spec.rb index fbe99f2..bd5aec6 100644 --- a/spec/controllers/kalibro_ranges_controller_spec.rb +++ b/spec/controllers/kalibro_ranges_controller_spec.rb @@ -139,7 +139,7 @@ describe KalibroRangesController, :type => :controller do it { is_expected.to redirect_to(kalibro_configurations_url(metric_configuration.kalibro_configuration_id)) } it { is_expected.to respond_with(:redirect) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/metric_configurations_controller_spec.rb b/spec/controllers/metric_configurations_controller_spec.rb index 1635bd3..b17b6ec 100644 --- a/spec/controllers/metric_configurations_controller_spec.rb +++ b/spec/controllers/metric_configurations_controller_spec.rb @@ -131,7 +131,7 @@ describe MetricConfigurationsController, :type => :controller do it { is_expected.to redirect_to(kalibro_configurations_path(metric_configuration.kalibro_configuration_id)) } it { is_expected.to respond_with(:redirect) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb index 7a6c151..9474f3b 100644 --- a/spec/controllers/projects_controller_spec.rb +++ b/spec/controllers/projects_controller_spec.rb @@ -190,7 +190,7 @@ describe ProjectsController, :type => :controller do end it { is_expected.to redirect_to(projects_path) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/reading_groups_controller_spec.rb b/spec/controllers/reading_groups_controller_spec.rb index 8047863..dfa6727 100644 --- a/spec/controllers/reading_groups_controller_spec.rb +++ b/spec/controllers/reading_groups_controller_spec.rb @@ -175,7 +175,7 @@ describe ReadingGroupsController, :type => :controller do end it { is_expected.to redirect_to(reading_group_path) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/readings_controller_spec.rb b/spec/controllers/readings_controller_spec.rb index 57f494e..63b2883 100644 --- a/spec/controllers/readings_controller_spec.rb +++ b/spec/controllers/readings_controller_spec.rb @@ -88,7 +88,7 @@ describe ReadingsController, :type => :controller do it { is_expected.to redirect_to(reading_group_url(reading_group.id)) } it { is_expected.to respond_with(:redirect) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end diff --git a/spec/controllers/repositories_controller_spec.rb b/spec/controllers/repositories_controller_spec.rb index a315abb..8a765f2 100644 --- a/spec/controllers/repositories_controller_spec.rb +++ b/spec/controllers/repositories_controller_spec.rb @@ -183,7 +183,7 @@ describe RepositoriesController, :type => :controller do it { is_expected.to redirect_to(projects_url) } it { is_expected.to respond_with(:redirect) } - it { is_expected.to set_the_flash[:notice].to("You're not allowed to do this operation") } + it { is_expected.to set_flash[:notice].to("You're not allowed to do this operation") } end end -- libgit2 0.21.2