From 8bd056e3e8baa108b2e10e460ceeeed3ec7c4c86 Mon Sep 17 00:00:00 2001 From: Jamie Winsor Date: Thu, 4 Aug 2011 13:59:51 -0700 Subject: Replace category.features with capybara rspec requests Update FactoryGirl factory definition syntax --- features/step_definitions/category_steps.rb | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 features/step_definitions/category_steps.rb (limited to 'features/step_definitions') 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 -- cgit v1.2.3