lib/keynote/testing/rspec.rb in keynote-0.2.2 vs lib/keynote/testing/rspec.rb in keynote-0.2.3
- old
+ new
@@ -12,9 +12,15 @@
end
end
end
RSpec.configure do |config|
- config.include Keynote::ExampleGroup,
- :type => :presenter,
- :example_group => {:file_path => %r/spec.presenters/}
+ if RSpec::Core::Version::STRING.starts_with?("3")
+ config.include Keynote::ExampleGroup,
+ :type => :presenter,
+ :file_path => %r/spec.presenters/
+ else
+ config.include Keynote::ExampleGroup,
+ :type => :presenter,
+ :example_group => { :file_path => %r/spec.presenters/ }
+ end
end