diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-08-04 13:59:51 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-08-04 15:11:05 -0700 |
commit | 8bd056e3e8baa108b2e10e460ceeeed3ec7c4c86 (patch) | |
tree | 5e095d1a675daabf26e8cc0472bae433257b7616 /features/step_definitions | |
parent | 84a2fcdf08430c70cb4da8c678c2d72e8ca54628 (diff) | |
download | refinerycms-blog-8bd056e3e8baa108b2e10e460ceeeed3ec7c4c86.tar.gz refinerycms-blog-8bd056e3e8baa108b2e10e460ceeeed3ec7c4c86.tar.bz2 refinerycms-blog-8bd056e3e8baa108b2e10e460ceeeed3ec7c4c86.zip |
Replace category.features with capybara rspec requests
Update FactoryGirl factory definition syntax
Diffstat (limited to 'features/step_definitions')
-rw-r--r-- | features/step_definitions/category_steps.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/features/step_definitions/category_steps.rb b/features/step_definitions/category_steps.rb deleted file mode 100644 index 3c197e2..0000000 --- a/features/step_definitions/category_steps.rb +++ /dev/null @@ -1,11 +0,0 @@ -Given /^there is a category titled "([^"]*)"$/ do |title| - @category = Factory.create(:blog_category, :title => title) -end - -Then /^the blog post should have ([\d]*) categor[yies]{1,3}$/ do |num_category| - ::Refinery::BlogPost.last.categories.count.should == num_category.to_i -end - -Then /^the blog post should have the category "([^"]*)"$/ do |category| - ::Refinery::BlogPost.last.categories.first.title.should == category -end |