Sha256: f8f5716d388814e2f384164fff5186f008a0bbc25d9b184c223070a6026428f1

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

require 'rubygems'
require 'ruby-debug'
require 'minitest/autorun'
require 'mocha'
require 'active_record'
require 'better_ar'

class Object
  def must_be_like other
    self.gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip
  end
end

ActiveRecord::Base.establish_connection(
  :adapter => defined?(JRUBY_VERSION) ? 'jdbcsqlite3' : 'sqlite3',
  :database => ':memory:'
)

users_table = %{CREATE TABLE users (id INTEGER PRIMARY KEY, age INTEGER, name TEXT);}
ActiveRecord::Base.connection.execute(users_table)

class User < ActiveRecord::Base; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
better_ar-0.0.4 test/helper.rb
better_ar-0.0.3 test/helper.rb