Dependencies update and use adapter's url_name instaid of the given name for index lookup for consistent url and index path locations

This commit is contained in:
2018-08-29 11:34:45 -05:00
parent 1428d0ce1b
commit bc636294c6
8 changed files with 79 additions and 84 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :comment do
user_id 1
post_id 1
+1 -1
View File
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :post do
sequence(:title) {|i| "post-#{i}"}
sequence(:body) {|i| "post-body-#{i}"}
+1 -1
View File
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :user do
sequence(:email) { |i| "user#{i}@example.com" }
password 'secret'
+3 -3
View File
@@ -19,7 +19,7 @@ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
# in spec/support/ and its subdirectories.
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
Dir[File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")].each {|f| require f }
#FactoryGirl.definition_file_paths = [File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")] # not needed here
#FactoryBot.definition_file_paths = [File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")] # not needed here
Dir.glob("spec/acceptance/steps/**/*steps.rb") { |f| load f, true }
# Add additional requires below this line. Rails is not loaded until this point!
@@ -53,7 +53,7 @@ RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
config.include FactoryGirl::Syntax::Methods
config.include FactoryBot::Syntax::Methods
config.include Rspec::Dunlop::GeneralHelpers
config.include Rspec::Dunlop::FeatureHelpers, type: :feature
config.include Devise::Test::ControllerHelpers, type: :controller
@@ -64,7 +64,7 @@ RSpec.configure do |config|
# instead of true.
config.use_transactional_fixtures = false
config.before :suite do
#FactoryGirl.reload # to add the adapter factories
#FactoryBot.reload # to add the adapter factories
#DatabaseCleaner.clean_with(:truncation)
DatabaseCleaner.clean_with(:truncation)
Dunlop::NestedLogger.options[:yaml_options][:line_width] = 2000