Permalink
Browse files

fix CI: KeyError is only used in MRI 1.9

  • Loading branch information...
1 parent 5ca658a commit feedd2f97531a05c4b1b95b75f9dcd64c72e9645 @mislav mislav committed Aug 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/method_override_spec.rb
@@ -84,8 +84,8 @@ def request_env(method)
let(:options) { [{ :hello => 'world' }] }
let(:request_method) { :get }
- it "raises KeyError" do
- expect { env }.to raise_error(KeyError, "key not found: :rewrite")
+ it "raises key error" do
+ expect { env }.to raise_error(IndexError, /key not found/)
end
end

0 comments on commit feedd2f

Please sign in to comment.