When /^I add the asset to the group$/ do @group.add_asset(@asset) end Then /^the asset should be in the group$/ do @group.assets.map(&:id).should include(@asset.id) end Then /^the asset should have the group$/ do @asset.group.should == @group end Then /^the group should have the asset$/ do @group.assets.map(&:id).should include(@asset.id) end