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
|
group :test, :development do
|
||||||
gem "rspec-rails", ">= 2.8.1"
|
gem "rspec-rails", ">= 2.8.1"
|
||||||
gem 'byebug'
|
gem 'byebug'
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_bot_rails'
|
||||||
gem 'rails-controller-testing'
|
gem 'rails-controller-testing'
|
||||||
end
|
end
|
||||||
|
|
|
@ -89,10 +89,10 @@ GEM
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
erubi (1.7.1)
|
erubi (1.7.1)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
factory_girl (4.9.0)
|
factory_bot (4.8.2)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
factory_girl_rails (4.9.0)
|
factory_bot_rails (4.8.2)
|
||||||
factory_girl (~> 4.9.0)
|
factory_bot (~> 4.8.2)
|
||||||
railties (>= 3.0.0)
|
railties (>= 3.0.0)
|
||||||
ffi (1.9.23)
|
ffi (1.9.23)
|
||||||
figaro (1.1.1)
|
figaro (1.1.1)
|
||||||
|
@ -359,7 +359,7 @@ DEPENDENCIES
|
||||||
codeclimate-test-reporter
|
codeclimate-test-reporter
|
||||||
coffee-rails (~> 4.2)
|
coffee-rails (~> 4.2)
|
||||||
database_cleaner
|
database_cleaner
|
||||||
factory_girl_rails
|
factory_bot_rails
|
||||||
figaro
|
figaro
|
||||||
font-awesome-sass (= 4.7.0)
|
font-awesome-sass (= 4.7.0)
|
||||||
foundation-icons-sass-rails
|
foundation-icons-sass-rails
|
||||||
|
|
|
@ -8,7 +8,7 @@ RSpec.describe Admin::DashboardController, type: :controller do
|
||||||
describe "GET 'index'" do
|
describe "GET 'index'" do
|
||||||
it "returns http success" do
|
it "returns http success" do
|
||||||
get 'index'
|
get 'index'
|
||||||
expect(response).to be_success
|
expect(response).to be_successful
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ RSpec.describe Admin::SessionsController, type: :controller do
|
||||||
describe "GET 'new'" do
|
describe "GET 'new'" do
|
||||||
it "returns http success" do
|
it "returns http success" do
|
||||||
get 'new'
|
get 'new'
|
||||||
expect(response).to be_success
|
expect(response).to be_successful
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ RSpec.describe Admin::SubscribesController, :type => :controller do
|
||||||
describe "GET index" do
|
describe "GET index" do
|
||||||
it "returns http success" do
|
it "returns http success" do
|
||||||
get :index
|
get :index
|
||||||
expect(response).to have_http_status(:success)
|
expect(response).to have_http_status(:ok)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ RSpec.describe HomeController, type: :controller do
|
||||||
describe "GET 'index'" do
|
describe "GET 'index'" do
|
||||||
it "returns http success" do
|
it "returns http success" do
|
||||||
get 'index'
|
get 'index'
|
||||||
expect(response).to be_success
|
expect(response).to be_successful
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FactoryGirl.define do
|
FactoryBot.define do
|
||||||
factory :comment do
|
factory :comment do
|
||||||
content 'content' * 10
|
content 'content' * 10
|
||||||
name 'commentor'
|
name 'commentor'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FactoryGirl.define do
|
FactoryBot.define do
|
||||||
factory :label do
|
factory :label do
|
||||||
name 'label'
|
name 'label'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FactoryGirl.define do
|
FactoryBot.define do
|
||||||
factory :post do
|
factory :post do
|
||||||
title 'this is a post title'
|
title 'this is a post title'
|
||||||
content 'content' * 10
|
content 'content' * 10
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryBot.define do
|
||||||
factory :subscribe do
|
factory :subscribe do
|
||||||
email "tester@mail.com"
|
email "tester@mail.com"
|
||||||
enable false
|
enable false
|
||||||
|
|
|
@ -8,7 +8,7 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
||||||
ActiveRecord::Migration.maintain_test_schema!
|
ActiveRecord::Migration.maintain_test_schema!
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.include FactoryGirl::Syntax::Methods
|
config.include FactoryBot::Syntax::Methods
|
||||||
|
|
||||||
config.before(:suite) do
|
config.before(:suite) do
|
||||||
DatabaseCleaner.strategy = :transaction
|
DatabaseCleaner.strategy = :transaction
|
||||||
|
|
Loading…
Reference in New Issue