Sha256: 5dfd09ce49e139a5bbaee8deab71d22b6d839be0bd1e3c219019b9b4ca6c1f08

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

require "active_record"
require "active_support/core_ext/module"
require "assert_difference"
require "acts-as-taggable-on"
require "minitest/autorun"
require "mocha/setup"
require_relative "../lib/log_book"

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/log_book/event"

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

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

class MiniTest::Test
  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.1.7 test/test_helper.rb