Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixing #44: Test failure on JRuby 1.6.0 #45

Closed
wants to merge 1 commit into from

2 participants

@kaiwren

This fixes #44. I've changed the regexp in the spec to ignore the bit of the trace that changes from 1.8 to 1.9 to JRuby. It's not that essential any way.

@kaiwren

Not so dependent on a particular ruby implementation. Closed by 8e2c1a2 Closed by 8e2c1a2

@justinko justinko closed this
@myronmarston myronmarston referenced this pull request from a commit in myronmarston/rspec-mocks
@kaiwren kaiwren Not so dependent on a particular ruby implementation. Closes #44 Closes 8e2c1a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2011
  1. @kaiwren

    Fixing issue #44

    kaiwren authored
This page is out of date. Refresh to see the latest.
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)
Something went wrong with that request. Please try again.