Browse files

simplify specs

  • Loading branch information...
1 parent d64ec3c commit a08ecf3bfdbc8e8f561cc451db982901e0af77c3 @grosser committed Jul 6, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 spec/setup_test_model.rb
View
8 spec/setup_test_model.rb
@@ -1,10 +1,8 @@
# connect
-ActiveRecord::Base.configurations = {"test" => {
+ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
- :database => ":memory:",
-}.with_indifferent_access}
-
-ActiveRecord::Base.establish_connection(:test)
+ :database => ":memory:"
+)
# create tables
ActiveRecord::Schema.define(:version => 1) do

0 comments on commit a08ecf3

Please sign in to comment.