aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-07-28 20:23:21 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2011-07-29 06:05:40 +0300
commit0cf860f577c7ef2c0d8b8ccd3100d9c57dedf631 (patch)
treede1ba34764803812dcad03141fab671d8ac42650 /spec
parentf0c2eb98675a4f6862d9ba41ace39a39c7811f7a (diff)
downloadrefinerycms-blog-0cf860f577c7ef2c0d8b8ccd3100d9c57dedf631.tar.gz
refinerycms-blog-0cf860f577c7ef2c0d8b8ccd3100d9c57dedf631.tar.bz2
refinerycms-blog-0cf860f577c7ef2c0d8b8ccd3100d9c57dedf631.zip
Manage blog posts request specs are now green.
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/manage_blog_posts_spec.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/requests/manage_blog_posts_spec.rb b/spec/requests/manage_blog_posts_spec.rb
index 2b7cb6c..2e44c53 100644
--- a/spec/requests/manage_blog_posts_spec.rb
+++ b/spec/requests/manage_blog_posts_spec.rb
@@ -33,8 +33,6 @@ describe "manage blog posts" do
click_button "Save"
page.should have_content("'Another Refinery CMS blog post' was successfully added.")
- # this probably is matching the same 'Another Refinery CMS blog post' in flash message!?
- page.should have_content("Another Refinery CMS blog post")
end
end
@@ -51,21 +49,18 @@ describe "manage blog posts" do
page.should_not have_content(blog_post.title)
page.should have_content("'hax0r' was successfully updated.")
- # this probably is matching the same 'hax0r' in flash message!?
- page.should have_content("hax0r")
end
end
context "when deleting blog post" do
it "should succeed" do
- pending "need to figure out how to accept js popup"
visit refinery_admin_blog_posts_path
page.should have_content(blog_post.title)
click_link "Remove this blog post forever"
- page.should_not have_content(blog_post.title)
+ page.should have_content("'#{blog_post.title}' was successfully removed.")
end
end