Sha256: 9a3c58b779915905f642cf8c75713bc5eb2ffee7da46d2587554f39852758020

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 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 Event$/ do
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

4 entries across 4 versions & 1 rubygems

Version Path
mongo_doc-0.4.2 features/step_definitions/string_casting_steps.rb
mongo_doc-0.4.1 features/step_definitions/string_casting_steps.rb
mongo_doc-0.4.0 features/step_definitions/string_casting_steps.rb
mongo_doc-0.3.2 features/step_definitions/string_casting_steps.rb