Sha256: ede524f5bc16ec446ece77983991146a77ea3222b510d23041443036e0f2e6ba

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

shared_context 'setup' do
  let(:lb_root) { object.root_for(__FILE__, 3) }

  let(:root) { File.join(lb_root, 'spec/fixtures') }

  let(:config_file) { File.join(root, 'config/application.yml') }

  let(:config) { LB::Project::Config.load(config_file) }

  let(:settings) do
    LB::Project::Settings.new(
      root: root,
      config: config
    )
  end

  before(:each) do
    object.setup(settings)
  end

  after(:each) do
    if object.instance_variable_defined?(:@settings)
      object.remove_instance_variable(:@settings)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lb-project-0.2.3 spec/shared/setup.rb
lb-project-0.2.2 spec/shared/setup.rb
lb-project-0.2.1 spec/shared/setup.rb
lb-project-0.2.0 spec/shared/setup.rb
lb-project-0.1.1 spec/shared/setup.rb
lb-project-0.1.0 spec/shared/setup.rb