aboutsummaryrefslogtreecommitdiffstats
path: root/spec/requests/refinery/blog/admin/posts_spec.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-01-17 16:56:03 +1300
committerPhilip Arndt <parndt@gmail.com>2012-01-17 16:56:24 +1300
commitb1e4fd00943a160f3eb6ce242463c0cc07a406fc (patch)
tree07fb750aa580b63d39c23589997956bf3a03594d /spec/requests/refinery/blog/admin/posts_spec.rb
parentb3a25c1b686d205fc6b8b409a8f90059ae6b934d (diff)
downloadrefinerycms-blog-b1e4fd00943a160f3eb6ce242463c0cc07a406fc.tar.gz
refinerycms-blog-b1e4fd00943a160f3eb6ce242463c0cc07a406fc.tar.bz2
refinerycms-blog-b1e4fd00943a160f3eb6ce242463c0cc07a406fc.zip
Fixed namespacing for Refinery conventions.
Diffstat (limited to 'spec/requests/refinery/blog/admin/posts_spec.rb')
-rw-r--r--spec/requests/refinery/blog/admin/posts_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/requests/refinery/blog/admin/posts_spec.rb b/spec/requests/refinery/blog/admin/posts_spec.rb
index 6c50c37..219fd13 100644
--- a/spec/requests/refinery/blog/admin/posts_spec.rb
+++ b/spec/requests/refinery/blog/admin/posts_spec.rb
@@ -36,7 +36,7 @@ module Refinery
describe "create blog post" do
before(:each) do
fill_in "Title", :with => "This is my blog post"
- fill_in "blog_post_body", :with => "And I love it"
+ fill_in "post_body", :with => "And I love it"
check blog_category.title
click_button "Save"
end
@@ -53,7 +53,7 @@ module Refinery
subject.class.first.author.should eq(::Refinery::User.last)
end
- it "should save categories" do
+ it "should save categories", :focus => true do
subject.class.last.categories.count.should eq(1)
subject.class.last.categories.first.title.should eq(blog_category.title)
end
@@ -63,7 +63,7 @@ module Refinery
before(:each) do
@tag_list = "chicago, bikes, beers, babes"
fill_in "Title", :with => "This is a tagged blog post"
- fill_in "blog_post_body", :with => "And I also love it"
+ fill_in "post_body", :with => "And I also love it"
fill_in "Tags", :with => @tag_list
click_button "Save"
end
@@ -118,7 +118,7 @@ module Refinery
it "redirects to blog post in the frontend" do
click_link "View this blog post live"
- current_path.should == blog_post_path(blog_post)
+ current_path.should == refinery_blog_post_path(blog_post)
page.should have_content(blog_post.title)
end
end
@@ -151,7 +151,7 @@ module Refinery
click_link "Create new post"
fill_in "Title", :with => "This is some other guy's blog post"
- fill_in "blog_post_body", :with => "I totally didn't write it."
+ fill_in "post_body", :with => "I totally didn't write it."
click_link "Advanced Options"