aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/requests/refinery/blog/admin/categories_spec.rb4
-rw-r--r--spec/requests/refinery/blog/admin/comments_spec.rb6
-rw-r--r--spec/requests/refinery/blog/admin/menu_spec.rb4
-rw-r--r--spec/requests/refinery/blog/admin/posts_spec.rb6
-rw-r--r--spec/requests/refinery/blog/categories_spec.rb4
-rw-r--r--spec/requests/refinery/blog/posts_spec.rb4
6 files changed, 14 insertions, 14 deletions
diff --git a/spec/requests/refinery/blog/admin/categories_spec.rb b/spec/requests/refinery/blog/admin/categories_spec.rb
index fd18cc0..c1809f7 100644
--- a/spec/requests/refinery/blog/admin/categories_spec.rb
+++ b/spec/requests/refinery/blog/admin/categories_spec.rb
@@ -1,8 +1,8 @@
require 'spec_helper'
describe "Categories admin" do
- login_refinery_user
-
+ refinery_login_with :refinery_user
+
let(:title) { "lol" }
it "can create categories" do
diff --git a/spec/requests/refinery/blog/admin/comments_spec.rb b/spec/requests/refinery/blog/admin/comments_spec.rb
index 1f69327..c834d13 100644
--- a/spec/requests/refinery/blog/admin/comments_spec.rb
+++ b/spec/requests/refinery/blog/admin/comments_spec.rb
@@ -4,8 +4,8 @@ module Refinery
module Blog
module Admin
describe Comment do
- login_refinery_user
-
+ refinery_login_with :refinery_user
+
describe "#index" do
context "when has no new unapproved comments" do
before(:each) do
@@ -118,4 +118,4 @@ module Refinery
end
end
end
-end \ No newline at end of file
+end
diff --git a/spec/requests/refinery/blog/admin/menu_spec.rb b/spec/requests/refinery/blog/admin/menu_spec.rb
index 8b4b011..ba10ffe 100644
--- a/spec/requests/refinery/blog/admin/menu_spec.rb
+++ b/spec/requests/refinery/blog/admin/menu_spec.rb
@@ -1,8 +1,8 @@
require 'spec_helper'
describe "Blog menu entry" do
- login_refinery_user
-
+ refinery_login_with :refinery_user
+
it "is highlighted when managing the blog" do
visit refinery.admin_root_path
diff --git a/spec/requests/refinery/blog/admin/posts_spec.rb b/spec/requests/refinery/blog/admin/posts_spec.rb
index acd0348..7972162 100644
--- a/spec/requests/refinery/blog/admin/posts_spec.rb
+++ b/spec/requests/refinery/blog/admin/posts_spec.rb
@@ -4,8 +4,8 @@ module Refinery
module Blog
module Admin
describe Post do
- login_refinery_user
-
+ refinery_login_with :refinery_user
+
let!(:blog_category) { FactoryGirl.create(:blog_category, :title => "Video Games") }
context "when no blog posts" do
@@ -172,4 +172,4 @@ module Refinery
end
end
end
-end \ No newline at end of file
+end
diff --git a/spec/requests/refinery/blog/categories_spec.rb b/spec/requests/refinery/blog/categories_spec.rb
index 149723c..3834992 100644
--- a/spec/requests/refinery/blog/categories_spec.rb
+++ b/spec/requests/refinery/blog/categories_spec.rb
@@ -2,8 +2,8 @@ require "spec_helper"
module Refinery
describe "BlogCategories" do
- login_refinery_user
-
+ refinery_login_with :refinery_user
+
context "has one category and post" do
before(:each) do
@post = FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
diff --git a/spec/requests/refinery/blog/posts_spec.rb b/spec/requests/refinery/blog/posts_spec.rb
index 6f34cb9..3422dd2 100644
--- a/spec/requests/refinery/blog/posts_spec.rb
+++ b/spec/requests/refinery/blog/posts_spec.rb
@@ -2,8 +2,8 @@ require "spec_helper"
module Refinery
describe "Blog::Posts" do
- login_refinery_user
-
+ refinery_login_with :refinery_user
+
context "when has blog posts" do
let!(:blog_post) { FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post") }