Sha256: a9f5d65c1c4946486a87028d9c0a8d2a8ab09c2da77838fdcae571851a49aa50
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require 'rspec-api/dsl/resource' require 'rspec-api/dsl/get' require 'rspec-api/dsl/request' module DSL end def resource(name, args = {}, &block) args.merge! rspec_api_dsl: :resource, rspec_api: {resource_name: name} describe name, args, &block end def rspec_api metadata[:rspec_api] end RSpec.configuration.include DSL::Resource, rspec_api_dsl: :resource RSpec.configuration.include DSL::Route, rspec_api_dsl: :route RSpec.configuration.include DSL::Request, rspec_api_dsl: :request # requires rspec >= 2.14 : RSpec.configuration.backtrace_exclusion_patterns << %r{lib/rspec-api/dsl\.rb}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-api-0.1.0 | lib/rspec-api/dsl.rb |