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'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe "Categories admin" do
|
describe "Categories admin" do
|
||||||
login_refinery_user
|
refinery_login_with :refinery_user
|
||||||
|
|
||||||
let(:title) { "lol" }
|
let(:title) { "lol" }
|
||||||
|
|
||||||
it "can create categories" do
|
it "can create categories" do
|
||||||
|
|
|
@ -4,8 +4,8 @@ module Refinery
|
||||||
module Blog
|
module Blog
|
||||||
module Admin
|
module Admin
|
||||||
describe Comment do
|
describe Comment do
|
||||||
login_refinery_user
|
refinery_login_with :refinery_user
|
||||||
|
|
||||||
describe "#index" do
|
describe "#index" do
|
||||||
context "when has no new unapproved comments" do
|
context "when has no new unapproved comments" do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
|
@ -118,4 +118,4 @@ module Refinery
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe "Blog menu entry" do
|
describe "Blog menu entry" do
|
||||||
login_refinery_user
|
refinery_login_with :refinery_user
|
||||||
|
|
||||||
it "is highlighted when managing the blog" do
|
it "is highlighted when managing the blog" do
|
||||||
visit refinery.admin_root_path
|
visit refinery.admin_root_path
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ module Refinery
|
||||||
module Blog
|
module Blog
|
||||||
module Admin
|
module Admin
|
||||||
describe Post do
|
describe Post do
|
||||||
login_refinery_user
|
refinery_login_with :refinery_user
|
||||||
|
|
||||||
let!(:blog_category) { FactoryGirl.create(:blog_category, :title => "Video Games") }
|
let!(:blog_category) { FactoryGirl.create(:blog_category, :title => "Video Games") }
|
||||||
|
|
||||||
context "when no blog posts" do
|
context "when no blog posts" do
|
||||||
|
@ -172,4 +172,4 @@ module Refinery
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,8 +2,8 @@ require "spec_helper"
|
||||||
|
|
||||||
module Refinery
|
module Refinery
|
||||||
describe "BlogCategories" do
|
describe "BlogCategories" do
|
||||||
login_refinery_user
|
refinery_login_with :refinery_user
|
||||||
|
|
||||||
context "has one category and post" do
|
context "has one category and post" do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
@post = FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
|
@post = FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
|
||||||
|
|
|
@ -2,8 +2,8 @@ require "spec_helper"
|
||||||
|
|
||||||
module Refinery
|
module Refinery
|
||||||
describe "Blog::Posts" do
|
describe "Blog::Posts" do
|
||||||
login_refinery_user
|
refinery_login_with :refinery_user
|
||||||
|
|
||||||
context "when has blog posts" do
|
context "when has blog posts" do
|
||||||
let!(:blog_post) { FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post") }
|
let!(:blog_post) { FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post") }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue