From ee2eca4098e6ff79b8ea78d9a2b94d7b2ac98f19 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Thu, 24 Apr 2014 15:44:52 -0500 Subject: [PATCH] Rename method to match other Rails version methods --- .../action_controller/strong_parameters_matcher_spec.rb | 2 +- spec/support/rails_versions.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb b/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb index 50feaa1f..4ec4954a 100644 --- a/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb +++ b/spec/shoulda/matchers/action_controller/strong_parameters_matcher_spec.rb @@ -261,7 +261,7 @@ describe Shoulda::Matchers::ActionController::StrongParametersMatcher do end context 'when given :update' do - if rails_gte_41? + if rails_gte_4_1? it 'PATCHes to the controller' do controller = ActionController::Base.new context = mock() diff --git a/spec/support/rails_versions.rb b/spec/support/rails_versions.rb index ac93c654..71ee929c 100644 --- a/spec/support/rails_versions.rb +++ b/spec/support/rails_versions.rb @@ -11,7 +11,7 @@ module RailsVersions Gem::Requirement.new('~> 4.0').satisfied_by?(rails_version) end - def rails_gte_41? + def rails_gte_4_1? Gem::Requirement.new('>= 4.1').satisfied_by?(rails_version) end end