Sha256: 2302b5d908ee5792a0519f2c3f7f42740f5ded4fe08d0b36e2b886edafa82e3f
Contents?: true
Size: 448 Bytes
Versions: 5
Compression:
Stored size: 448 Bytes
Contents
Given /^I have a shop with items, staff and suppliers$/ do class Shop include Dozuki::Mapper attr_accessor :staff, :items, :suppliers end end Then /^the shop should have (\d+) (.*)$/ do |count, field| @shop.send(field).should == count.to_i end When /^I map the shop node to a shop object with:$/ do |string| Shop.instance_eval %Q{ map_with do |map| #{string} end } @shop = Shop.from_node(@doc.get('/shop')) end
Version data entries
5 entries across 5 versions & 1 rubygems