Skip to content

Commit

Permalink
adds expected return value of connection_hash is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Avery Wilkening authored and etagwerker committed Apr 19, 2018
1 parent 986d198 commit 83c485c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/database_cleaner/active_record/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def establish_connection
::ActiveRecord::Base.establish_connection(connection_hash)
::ActiveRecord::Base
end

end
end
end
2 changes: 1 addition & 1 deletion spec/database_cleaner/active_record/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ExampleStrategy
it "establish a connection using ActiveRecord::Base" do
::ActiveRecord::Base.should_receive(:establish_connection).with(hash)

subject.connection_class
expect(subject.connection_class).to eq ::ActiveRecord::Base
end
end
end
Expand Down

0 comments on commit 83c485c

Please sign in to comment.