From 0cf860f577c7ef2c0d8b8ccd3100d9c57dedf631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Thu, 28 Jul 2011 20:23:21 +0300 Subject: Manage blog posts request specs are now green. --- spec/requests/manage_blog_posts_spec.rb | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3