fix depreciation message

This commit is contained in:
yafeilee 2018-05-19 17:07:08 +08:00
parent b038f4cce2
commit 78c4f0efd9
11 changed files with 14 additions and 14 deletions

View File

@ -66,6 +66,6 @@ end
group :test, :development do
gem "rspec-rails", ">= 2.8.1"
gem 'byebug'
gem 'factory_girl_rails'
gem 'factory_bot_rails'
gem 'rails-controller-testing'
end

View File

@ -89,10 +89,10 @@ GEM
unf (>= 0.0.5, < 1.0.0)
erubi (1.7.1)
execjs (2.7.0)
factory_girl (4.9.0)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
factory_girl_rails (4.9.0)
factory_girl (~> 4.9.0)
factory_bot_rails (4.8.2)
factory_bot (~> 4.8.2)
railties (>= 3.0.0)
ffi (1.9.23)
figaro (1.1.1)
@ -359,7 +359,7 @@ DEPENDENCIES
codeclimate-test-reporter
coffee-rails (~> 4.2)
database_cleaner
factory_girl_rails
factory_bot_rails
figaro
font-awesome-sass (= 4.7.0)
foundation-icons-sass-rails

View File

@ -8,7 +8,7 @@ RSpec.describe Admin::DashboardController, type: :controller do
describe "GET 'index'" do
it "returns http success" do
get 'index'
expect(response).to be_success
expect(response).to be_successful
end
end

View File

@ -8,7 +8,7 @@ RSpec.describe Admin::SessionsController, type: :controller do
describe "GET 'new'" do
it "returns http success" do
get 'new'
expect(response).to be_success
expect(response).to be_successful
end
end

View File

@ -9,7 +9,7 @@ RSpec.describe Admin::SubscribesController, :type => :controller do
describe "GET index" do
it "returns http success" do
get :index
expect(response).to have_http_status(:success)
expect(response).to have_http_status(:ok)
end
end

View File

@ -5,7 +5,7 @@ RSpec.describe HomeController, type: :controller do
describe "GET 'index'" do
it "returns http success" do
get 'index'
expect(response).to be_success
expect(response).to be_successful
end
end

View File

@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :comment do
content 'content' * 10
name 'commentor'

View File

@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :label do
name 'label'
end

View File

@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :post do
title 'this is a post title'
content 'content' * 10

View File

@ -1,6 +1,6 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
FactoryBot.define do
factory :subscribe do
email "tester@mail.com"
enable false

View File

@ -8,7 +8,7 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
config.include FactoryBot::Syntax::Methods
config.before(:suite) do
DatabaseCleaner.strategy = :transaction