Sha256: 36a314b88b5cb0c737009ea1186814c39765125f2f4d3e1bc3b5e76494ed87f2
Contents?: true
Size: 512 Bytes
Versions: 8
Compression:
Stored size: 512 Bytes
Contents
Module.class_eval do ## # # Allows you to include a module to be available in your # rspec tests from without the module it self. # # @param [Hash] rspec options A hash of options which instructs rspec on how (and where) to include the module. # # Example: # module MyMatchers # rspec :type => :request # # matcher :have_image do |alt| # ... # end # end # def rspec(options={}) RSpec.configure do |config| config.include self, options end end end
Version data entries
8 entries across 8 versions & 1 rubygems