add space in multiword model in I18n unauthorized message - closes #292

This commit is contained in:
Ryan Bates
2011-03-08 15:56:23 -08:00
parent 951d70e057
commit ba999970b1
2 changed files with 2 additions and 1 deletions

View File

@@ -395,6 +395,7 @@ describe CanCan::Ability do
it "should have variables for action and subject" do
I18n.backend.store_translations :en, :unauthorized => {:manage => {:all => "%{action} %{subject}"}} # old syntax for now in case testing with old I18n
@ability.unauthorized_message(:update, Array).should == "update array"
@ability.unauthorized_message(:update, ArgumentError).should == "update argument error"
@ability.unauthorized_message(:edit, 1..3).should == "edit range"
end
end