adding Gemfile, to get specs running just bundle and rake - closes #163

This commit is contained in:
Ryan Bates
2010-10-05 10:09:37 -07:00
parent 8f49f28713
commit 18b45d5cfc
9 changed files with 27 additions and 15 deletions

View File

@@ -379,7 +379,7 @@ describe CanCan::Ability do
end
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
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(:edit, 1..3).should == "edit range"
end