diff options
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb new file mode 100644 index 0000000..c4fbe20 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | When /^I destroy gamma (\w+) without callbacks$/ do |name| | ||
| 2 | @results = nil | ||
| 3 | gamma = Gamma.find_by_name(name) | ||
| 4 | Gamma.delete(gamma.id) if gamma | ||
| 5 | end | ||
| 6 | |||
| 7 | Then "I should get a single result of nil" do | ||
| 8 | results.should == [nil] | ||
| 9 | end | ||
| 10 | |||
| 11 | Then /^I should get a single gamma result with a name of (\w+)$/ do |name| | ||
| 12 | results.length.should == 1 | ||
| 13 | results.first.should be_kind_of(Gamma) | ||
| 14 | results.first.name.should == name | ||
| 15 | end | ||
