Sha256: a86fa1f241d41d44339c9fdc07a7fb84dc73c12d101d9751feb630f7c1971cf8

Contents?: true

Size: 725 Bytes

Versions: 1

Compression:

Stored size: 725 Bytes

Contents

require "minitest/unit"
require "minitest/autorun"
require "mocha/setup"
require "assert_difference"
require "active_record"
require "acts-as-taggable-on"

FileUtils.rm("#{File.dirname(__FILE__)}/db/log_book.sqlite", :force => true)

ActiveRecord::Base.establish_connection(
  :adapter  => "sqlite3",
  :database => "#{File.dirname(__FILE__)}/db/log_book.sqlite"
)

require_relative "../lib/generators/log_book/templates/create_log_book_events"
CreateLogBookEvents.up

require_relative "../lib/log_book"

load("#{File.dirname(__FILE__)}/schema.rb")
load("#{File.dirname(__FILE__)}/models.rb")

class MiniTest::Unit::TestCase
  include AssertDifference
  FIXTURES = File.expand_path("#{File.dirname(__FILE__)}/fixtures")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
log_book-0.0.1 test/test_helper.rb