blob: 31176b4deeafc5459b4dc4a7b6bd3a4a1e6ec02e (
plain) (
tree)
|
|
Given /^there is a category titled "([^"]*)"$/ do |title|
@category = Factory(:blog_category, :title => title)
end
Then /^the blog post should have "([^"]*)" category$/ do |num_category|
BlogPost.last.categories.count.should == num_category
end
Then /^the blog post should have the category "([^"]*)"$/ do |category|
BlogPost.last.categories.first.title.should == category
end
|