Use 'refinery_login_with :refinery_user' instead of deprecated 'login_refinery_user' in request specs.
This commit is contained in:
parent
538e6653f0
commit
6fa5bbdf33
6 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
end
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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") }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue