lib/rspec/its.rb in rspec-its-1.3.0 vs lib/rspec/its.rb in rspec-its-1.3.1
- old
+ new
@@ -1,8 +1,10 @@
require 'rspec/its/version'
require 'rspec/core'
+RSpec::Core::ExampleGroup.define_example_method :__its_example
+
module RSpec
module Its
# Creates a nested example group named by the submitted `attribute`,
# and then generates an example using the submitted block.
@@ -164,10 +166,10 @@
end
options << {} unless options.last.kind_of?(Hash)
options.last.merge!(:caller => its_caller)
- example(nil, *options, &block)
+ __its_example(nil, *options, &block)
end
end
end