Sha256: 0de17034db573aaeb69a8817f8b915f67f286fd1dc4abfca996392330e3e9507

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

# -*- coding: utf-8 -*-
require 'rubygems'
require 'bundler'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

ENV["RAILS_ENV"] ||= 'test'

require 'active_record'
require 'action_view'
require 'action_controller'

require 'rspec'
require 'rspec/rails'
require 'shoulda'

require 'gritter_notices'

# require 'nulldb_rspec'
# include NullDB::RSpec::NullifiedDatabase

ActiveRecord::Base.establish_connection(
  :adapter => 'sqlite3',
  # :database=>'/tmp/gritter_notices.sqlite3'
  :database => ":memory:"
)
#ActiveRecord::Base.logger = Logger.new(File.open('log/database.log', 'a'))

require 'lib/generators/templates/migration'
CreateGritterNoticesTable.migrate :up

require 'spec/support/migration'
CreateUsersTable.migrate :up

require 'spec/support/user'

require 'app/models/gritter_notice'

require 'factory_girl'
require 'spec/support/factories'

# Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.include GritterNotices::RSpecMatcher
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gritter_notices-0.3.4 spec/spec_helper.rb
gritter_notices-0.3.3 spec/spec_helper.rb
gritter_notices-0.3.2 spec/spec_helper.rb
gritter_notices-0.3.1 spec/spec_helper.rb
gritter_notices-0.2.0 spec/spec_helper.rb