lib/rantly/property.rb in rantly-0.3.0 vs lib/rantly/property.rb in rantly-0.3.1

- old
+ new

@@ -46,5 +46,15 @@ def property_of(&block) Rantly::Property.new(block) end end +begin + require 'rspec' + class RSpec::Core::ExampleGroup + def property_of(&block) + Rantly::Property.new(block) + end + end +rescue LoadError + "No RSpec loaded. Oh, well." +end