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

Version Path
mongo_doc-0.6.26 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.25 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.23 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.22 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.21 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.20 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.19 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.18 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.17 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.16 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.15 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.14 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.13 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.12 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.11 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.10 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.9 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.8 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.7 features/step_definitions/string_casting_steps.rb
mongo_doc-0.6.6 features/step_definitions/string_casting_steps.rb