Skip to content

Commit

Permalink
Rename StrongParametersMatcher to PermitMatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Mar 1, 2015
1 parent e2d1461 commit 2b0e1fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/shoulda/matchers/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
require 'shoulda/matchers/action_controller/render_template_matcher'
require 'shoulda/matchers/action_controller/rescue_from_matcher'
require 'shoulda/matchers/action_controller/callback_matcher'
require 'shoulda/matchers/action_controller/strong_parameters_matcher'
require 'shoulda/matchers/action_controller/permit_matcher'
require 'shoulda/matchers/action_controller/set_session_or_flash_matcher'
require 'shoulda/matchers/action_controller/flash_store'
require 'shoulda/matchers/action_controller/session_store'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ module ActionController
# )
# end
#
# @return [StrongParametersMatcher]
# @return [PermitMatcher]
#
def permit(*params)
StrongParametersMatcher.new(params).in_context(self)
PermitMatcher.new(params).in_context(self)
end

# @private
class StrongParametersMatcher
class PermitMatcher
attr_writer :stubbed_params

def initialize(expected_permitted_params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
end
end

describe Shoulda::Matchers::ActionController::StrongParametersMatcher, type: :controller do
describe Shoulda::Matchers::ActionController::PermitMatcher, type: :controller do
describe '#description' do
it 'returns the correct string' do
options = { action: :create, method: :post }
Expand Down

0 comments on commit 2b0e1fb

Please sign in to comment.