Skip to content

Commit

Permalink
Deal with JRuby 1.7.8 output still being problematic.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Dec 21, 2013
1 parent 18dc82d commit c199166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/core/filter_manager_spec.rb
Expand Up @@ -165,7 +165,7 @@ def filterable_object_with(args = {})
describe "#inclusions#description" do
it 'cleans up the description' do
project_dir = File.expand_path('.')
expect(lambda { }.inspect).to include(project_dir) unless defined?(JRUBY_VERSION) && JRUBY_VERSION == '1.7.4'
expect(lambda { }.inspect).to include(project_dir) unless defined?(JRUBY_VERSION) && JRUBY_VERSION =~ /\A1\.7/
expect(lambda { }.inspect).to include(' (lambda)') if RUBY_VERSION > '1.9'
expect(lambda { }.inspect).to include('0x')

Expand All @@ -181,7 +181,7 @@ def filterable_object_with(args = {})
describe "#exclusions#description" do
it 'cleans up the description' do
project_dir = File.expand_path('.')
expect(lambda { }.inspect).to include(project_dir) unless defined?(JRUBY_VERSION) && JRUBY_VERSION == '1.7.4'
expect(lambda { }.inspect).to include(project_dir) unless defined?(JRUBY_VERSION) && JRUBY_VERSION == /\A1\.7/
expect(lambda { }.inspect).to include(' (lambda)') if RUBY_VERSION > '1.9'
expect(lambda { }.inspect).to include('0x')

Expand Down

0 comments on commit c199166

Please sign in to comment.