lib/rspec/example_steps.rb in rspec-example_steps-0.2.3 vs lib/rspec/example_steps.rb in rspec-example_steps-0.2.4

- old
+ new

@@ -15,10 +15,10 @@ RSpec::Core::Formatters::DocumentationFormatter.send :include, RSpec::ExampleSteps::DocumentationFormatter RSpec::Core::ExampleGroup.send :include, RSpec::ExampleSteps::ExampleGroup RSpec::Core::Reporter.send :include, RSpec::ExampleSteps::Reporter RSpec::Core::World.send :include, RSpec::ExampleSteps::World -if RSpec::Core::ExampleGroup.singleton_class.respond_to?(:define_example_method) +if RSpec::Core::ExampleGroup.singleton_class.respond_to?(:define_example_method, true) RSpec::Core::ExampleGroup.singleton_class.define_example_method :Steps, :with_steps => true else RSpec::Core::ExampleGroup.define_example_method :Steps, :with_steps => true end