Sha256: 68e8818ae2aa3d962142532358683d0597c4042d2238e873dd814f445351f5e3
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
When /^I set its (\w+) to the "([^\"]*)" with id "([^\"]*)"$/ do |association, model, id| @instance.send("#{association}=", model.constantize.load!(id)) end Then /^its "([^\"]*)" should be the "([^\"]*)" with id "([^\"]*)"$/ do |association, model, id| @instance.send(association).should be_an_instance_of(model.constantize) @instance.send(association).id.should == id end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recliner-0.0.1 | features/step_definitions/association_steps.rb |