Sha256: 05db5fc614f479fdcfdda225cd96c002cc08bb56bed04f35b847fc7abda408d6
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
module RSpecApi module DSL module Attributes def has_attribute(name, options = {}, &block) @attributes[name] = options end def attributes_of(resource) @resources.find{|r| r.description == resource.to_s.pluralize.humanize}.instance_variable_get '@attributes' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-api-0.5.0 | lib/rspec-api/dsl/attributes.rb |