Sha256: b8269e95dfe5a58616aec6294aea20066e3c376c3b0185f542bafcc7031401ee
Contents?: true
Size: 411 Bytes
Versions: 96
Compression:
Stored size: 411 Bytes
Contents
When /^I destroy gamma (\w+) without callbacks$/ do |name| @results = nil gamma = Gamma.find_by_name(name) Gamma.delete(gamma.id) if gamma end Then "I should get a single result of nil" do results.to_a.should == [nil] end Then /^I should get a single gamma result with a name of (\w+)$/ do |name| results.length.should == 1 results.first.should be_a(Gamma) results.first.name.should == name end
Version data entries
96 entries across 96 versions & 15 rubygems