Sha256: 3e183e5d1ec7d63746ae2bb97331125fc4408c9da4067f44c3f986cf6edc2dc5

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

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

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

  class Engine < Rails::Engine
    isolate_namespace FeatureGate
  end

  class ApplicationController < ActionController::Base
  end

  def self.time_to_stale
    1.month
  end
end
FeatureGate::Application.initialize!

# Run migrations
require_relative '../lib/generators/feature_gate/templates/migration'
CreateFeatureGateGatedFeatures.suppress_messages { CreateFeatureGateGatedFeatures.new.change }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
feature_gate-0.2.3 spec/fake_app.rb
feature_gate-0.2.2 spec/fake_app.rb
feature_gate-0.2.1 spec/fake_app.rb
feature_gate-0.2.0 spec/fake_app.rb
feature_gate-0.1.9 spec/fake_app.rb