Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Not so dependent on a particular ruby implementation. Closes #44 Closes

  • Loading branch information...
commit 8e2c1a2477a434c7fa29eccb154967ef051c6be1 1 parent ef127a5
@kaiwren kaiwren authored justinko committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  spec/rspec/mocks/nil_expectation_warning_spec.rb
View
3  spec/rspec/mocks/nil_expectation_warning_spec.rb
@@ -13,9 +13,8 @@ module RSpec
module Mocks
describe "an expectation set on nil" do
-
it "issues a warning with file and line number information" do
- expected_warning = %r%An expectation of :foo was set on nil. Called from #{__FILE__}:#{__LINE__+3}(:in `block \(2 levels\) in <module:Mocks>')?. Use allow_message_expectations_on_nil to disable warnings.%
+ expected_warning = %r%An expectation of :foo was set on nil. Called from #{__FILE__}:#{__LINE__+3}(:in .+)?. Use allow_message_expectations_on_nil to disable warnings.%
Kernel.should_receive(:warn).with(expected_warning)
nil.should_receive(:foo)
Please sign in to comment.
Something went wrong with that request. Please try again.