Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e217b85566
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.652 kb
ENV['RAILS_ENV'] = 'test'
require 'rubygems'
require 'rails/all'
require 'shoulda'
require 'shoulda/rails'
require 'bourne'
begin require 'redgreen'; rescue LoadError; end
module PaulRevere
class Application < Rails::Application
end
end
class ActiveSupport::TestCase
setup do
Announcement.delete_all
end
end
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
require File.join(PROJECT_ROOT, 'lib', 'generators', 'paul_revere', 'templates', 'migration')
ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)
CreateAnnouncements.suppress_messages { CreateAnnouncements.up }
Jump to Line
Something went wrong with that request. Please try again.