forked from refinery/refinerycms-blog
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the spec suite to be consistent.
- Loading branch information
Showing
10 changed files
with
55 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Given /^there is a category titled "([^"]*)"$/ do |title| | ||
@category = Factory(:blog_category, :title => title) | ||
@category = Factory.create(:blog_category, :title => title) | ||
end | ||
|
||
Then /^the blog post should have "([^"]*)" category$/ do |num_category| | ||
BlogPost.last.categories.count.should == num_category | ||
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| | ||
Then /^the blog post should have the category "([^"]*)"$/ do |category| | ||
BlogPost.last.categories.first.title.should == category | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters