Sha256: 5fa0c10f0e6980a3d11f52a3ac36dffa59639fef76a743d0799a20432ce29a0e

Contents?: true

Size: 411 Bytes

Versions: 10

Compression:

Stored size: 411 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", __dir__)
    allow(Rails).to receive(:root).and_return(Pathname.new(fake_rails_root))

    destination fake_rails_root
    prepare_destination
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
scenic-1.7.0 spec/support/generator_spec_setup.rb
scenic-1.6.0 spec/support/generator_spec_setup.rb
scenic-1.5.5 spec/support/generator_spec_setup.rb
scenic-jets-1.5.5 spec/support/generator_spec_setup.rb
scenic-jets-1.5.4 spec/support/generator_spec_setup.rb
scenic-1.5.4 spec/support/generator_spec_setup.rb
scenic-1.5.3 spec/support/generator_spec_setup.rb
scenic-1.5.2 spec/support/generator_spec_setup.rb
scenic-1.5.1 spec/support/generator_spec_setup.rb
scenic-1.5.0 spec/support/generator_spec_setup.rb