fix depreciation message
This commit is contained in:
parent
b038f4cce2
commit
78c4f0efd9
2
Gemfile
2
Gemfile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :comment do
|
||||
content 'content' * 10
|
||||
name 'commentor'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :label do
|
||||
name 'label'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :post do
|
||||
title 'this is a post title'
|
||||
content 'content' * 10
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue