test/test_helper.rb in disposable-0.1.12 vs test/test_helper.rb in disposable-0.1.13

- old
+ new

@@ -30,31 +30,29 @@ belongs_to :artist end ActiveRecord::Base.establish_connection( :adapter => "sqlite3", - :database => "#{Dir.pwd}/database.sqlite3" + :database => ":memory:" ) -# uncomment this once to create a database for testing: - -# ActiveRecord::Schema.define do -# create_table :artists do |table| -# table.column :name, :string -# table.timestamps -# end -# create_table :songs do |table| -# table.column :title, :string -# table.column :artist_id, :integer -# table.column :album_id, :integer -# table.timestamps -# end -# create_table :albums do |table| -# table.column :name, :string -# table.column :artist_id, :integer -# table.timestamps -# end -# end +ActiveRecord::Schema.define do + create_table :artists do |table| + table.column :name, :string + table.timestamps + end + create_table :songs do |table| + table.column :title, :string + table.column :artist_id, :integer + table.column :album_id, :integer + table.timestamps + end + create_table :albums do |table| + table.column :name, :string + table.column :artist_id, :integer + table.timestamps + end +end module Disposable module Comparable def attributes(source) source.instance_variable_get(:@fields)