Sha256: 8f6b565df36d6c40000d801bb3351b764d5d9b961c0b2303c98585db336e7734

Contents?: true

Size: 507 Bytes

Versions: 8

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe LB::Project, '.root' do
  subject { object.root }

  let(:object) { described_class }

  context 'without setup' do
    it 'should raise argument error' do
      expect { subject }.to raise_error ArgumentError,
                                        'Call LB::Project.setup(...) first!'
    end
  end

  context 'without setup' do
    include_context 'setup'

    it 'should return root' do
      expect(subject).to be(root)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lb-project-0.3.1 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.3.0 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.2.3 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.2.2 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.2.1 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.2.0 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.1.1 spec/unit/lb/project/class_methods/root_spec.rb
lb-project-0.1.0 spec/unit/lb/project/class_methods/root_spec.rb