From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- .../features/step_definitions/gamma_steps.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb (limited to 'vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb') 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 00000000..c4fbe20d --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb @@ -0,0 +1,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 -- cgit v1.3