aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/step_definitions
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-03-11 13:21:24 -0600
committerJoe Sak <joe@joesak.com>2011-03-11 13:21:24 -0600
commitb3f95341c3b67123084563bd38f9145b8ef4da78 (patch)
tree2be1d73388f241f323d43d983f325790628e362f /features/support/step_definitions
parentac7a6f6636912635835ff73320ded4ad1cc73746 (diff)
downloadrefinerycms-blog-b3f95341c3b67123084563bd38f9145b8ef4da78.tar.gz
refinerycms-blog-b3f95341c3b67123084563bd38f9145b8ef4da78.tar.bz2
refinerycms-blog-b3f95341c3b67123084563bd38f9145b8ef4da78.zip
More test coverage for tags: can fill tags in on admin form
Diffstat (limited to 'features/support/step_definitions')
-rw-r--r--features/support/step_definitions/tags_steps.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/features/support/step_definitions/tags_steps.rb b/features/support/step_definitions/tags_steps.rb
new file mode 100644
index 0000000..00e8a3e
--- /dev/null
+++ b/features/support/step_definitions/tags_steps.rb
@@ -0,0 +1,3 @@
+Then /^the blog post should have the tags "([^"]*)"$/ do |tag_list|
+ BlogPost.last.tag_list == tag_list.split(', ')
+end