Sha256: a7035324298460737f05e14b4189041eb9192d5978ca91d5976ad7631187c6cf
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
Given /^I have a bar with open, busy and dodgy$/ do class Bar include Dozuki::Mapper attr_accessor :open, :busy, :dodgy end end When /^I map the bar node to a bar object with:$/ do |string| Bar.instance_eval %Q{ map_with do |map| #{string} end } @bar = Bar.from_node(@doc.get('/bar')) end Then /^the bar should be (.*)$/ do |field| @bar.send(field).should == true end Then /^the bar should not be (.*)$/ do |field| @bar.send(field).should == false end
Version data entries
3 entries across 3 versions & 1 rubygems