blob: c4fbe20da61e6003678823e6481f7dc12287dfd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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.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_kind_of(Gamma)
results.first.name.should == name
end
|