blob: 891b5c09cfef11a9569a285499e217d1ed7228af (
plain) (
tree)
|
|
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|
BlogPost.last.categories.count.should == num_category.to_i
end
Then /^the blog post should have the category "([^"]*)"$/ do |category|
BlogPost.last.categories.first.title.should == category
end
|