Sha256: ba04daf1033d01ff121521d678f7b75a60b4d338b8d9b7a02ed9694b66fe90e8
Contents?: true
Size: 582 Bytes
Versions: 29
Compression:
Stored size: 582 Bytes
Contents
def last @last end def last=(value) @last = value end def all @all ||= [] end def all=(value) @all = value end Given /^a class (.+)$/ do |type_name| type_name.constantize.should be_kind_of(Class) end Given /^I create an (.+) '(.+)' with:$/ do |klass_name, object_name, table| Given "an #{klass_name} document named '#{object_name}' :", table end Then /^the object '(.+)' has an attribute '(.+)' of type (.*)$/ do |object_name, attr_name, type_name| object = instance_variable_get("@#{object_name}") type_name.constantize.should === object.send(attr_name) end
Version data entries
29 entries across 29 versions & 2 rubygems