summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-28 00:15:53 +0200
committerhukl <contact@smyck.org>2009-05-01 17:14:02 +0200
commit4bd16f053847f2efe347ebda9136ef2233ee0d2c (patch)
treef4c11f89455de991c8d87726d5757b752e7129e2 /vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb
parentd3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff)
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb')
-rw-r--r--vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb
new file mode 100644
index 0000000..2d566a1
--- /dev/null
+++ b/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb
@@ -0,0 +1,11 @@
1When /^I destroy beta (\w+)$/ do |name|
2 Beta.find_by_name(name).destroy
3end
4
5When /^I create a new beta named (\w+)$/ do |name|
6 Beta.create(:name => name)
7end
8
9When /^I change the name of beta (\w+) to (\w+)$/ do |current, replacement|
10 Beta.find_by_name(current).update_attributes(:name => replacement)
11end \ No newline at end of file