Sha256: 18f8c613ecf7b7b5e13260df5b74ce1d727ae41594678fc99c9cfd23fcd7a687

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

# Classes required for the tests
class User; end
module ApplicationHelper; def current_user; raise; end; end

# Create a rails app
module PaulRevere
  class Application < Rails::Application
    config.secret_key_base = "test"
    config.paths["config/database"] = ["spec/support/database.yml"]
    config.eager_load = false
  end
end
PaulRevere::Application.initialize!

# Run migrations
require_relative "../lib/generators/paul_revere/templates/migration"
CreateAnnouncements.suppress_messages { CreateAnnouncements.new.change }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paul_revere-2.1.0 spec/fake_app.rb
paul_revere-2.1.0.rc1 spec/fake_app.rb
paul_revere-2.0.0 spec/fake_app.rb