Browse files

fixing specs for older versions of ruby and rspec

  • Loading branch information...
1 parent 25637bb commit 9b26f4d7675c0967fdf57f219b43b5eecf10af5e @ryanb committed Jul 21, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 spec/cancan/ability_spec.rb
  2. +1 −1 spec/matchers.rb
View
2 spec/cancan/ability_spec.rb
@@ -242,6 +242,6 @@
it "should has eated cheezburger" do
lambda {
@ability.can? :has, :cheezburger
- }.should raise_exception(CanCan::Error, "Nom nom nom. I eated it.")
+ }.should raise_error(CanCan::Error, "Nom nom nom. I eated it.")
end
end
View
2 spec/matchers.rb
@@ -1,6 +1,6 @@
Spec::Matchers.define :orderlessly_match do |original_string|
match do |given_string|
- original_string.bytes.sum == given_string.bytes.sum
+ original_string.split('').sort == given_string.split('').sort
end
failure_message_for_should do |given_string|

0 comments on commit 9b26f4d

Please sign in to comment.