Sha256: 50340754311a2b4e17e36ae1d64c07dd4911179209cb43390c5595b53c87e2ab

Contents?: true

Size: 415 Bytes

Versions: 7

Compression:

Stored size: 415 Bytes

Contents

require "rspec/rails"
require "ammeter/rspec/generator/example.rb"
require "ammeter/rspec/generator/matchers.rb"
require "ammeter/init"

RSpec.configure do |config|
  config.before(:example, :generator) do
    fake_rails_root = File.expand_path("../../../tmp", __FILE__)
    allow(Rails).to receive(:root).and_return(Pathname.new(fake_rails_root))

    destination fake_rails_root
    prepare_destination
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scenic-1.4.1 spec/support/generator_spec_setup.rb
scenic-1.4.0 spec/support/generator_spec_setup.rb
scenic-1.3.0 spec/support/generator_spec_setup.rb
scenic-1.2.0 spec/support/generator_spec_setup.rb
scenic-1.1.1 spec/support/generator_spec_setup.rb
scenic-1.1.0 spec/support/generator_spec_setup.rb
scenic-1.0.0 spec/support/generator_spec_setup.rb