Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ruby-1.9.2 compat - fix failing example

  • Loading branch information...
commit 5825557f3d405052a8080fba857ec481e4765bf5 1 parent e08f442
David Chelimsky dchelimsky authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 spec/rspec/core/shared_example_group_spec.rb
7 spec/rspec/core/shared_example_group_spec.rb
View
@@ -48,12 +48,11 @@ def extra_helper; end
end
it "should make any shared example_group available at the correct level", :ruby => 1.9 do
- group = ExampleGroup.describe('fake group')
- block = lambda {
+ group = ExampleGroup.describe
+ shared_examples_for(:shared_example_group) do
def self.class_helper; end
def extra_helper; end
- }
- Rspec::Core.world.stub(:shared_example_groups).and_return({ :shared_example_group => block })
+ end
group.it_should_behave_like :shared_example_group
group.instance_methods.should include(:extra_helper)
group.singleton_methods.should include(:class_helper)
Please sign in to comment.
Something went wrong with that request. Please try again.