Skip to content

Commit

Permalink
Always return the same
Browse files Browse the repository at this point in the history
  • Loading branch information
lewhit authored and ilyakatz committed Mar 13, 2021
1 parent a815c45 commit 8e73bf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "rails", "5.0.7.2"
gem "sqlite3", "~> 1.4"

gemspec path: "../"
2 changes: 1 addition & 1 deletion spec/data_migrate/database_tasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
ActiveRecord::Base.establish_connection(db_config)
if Rails.version >= '6.1'
config_obj = ActiveRecord::DatabaseConfigurations::HashConfig.new('test', 'test', {adapter: 'sqlite3'})
allow(ActiveRecord::Base.configurations).to receive(:configs_for).with(env_name: 'test').and_return([ config_obj ])
allow(ActiveRecord::Base.configurations).to receive(:configs_for).and_return([ config_obj ])
else
ActiveRecord::Base.configurations[:test] = db_config
end
Expand Down

0 comments on commit 8e73bf9

Please sign in to comment.