Sha256: a1f2dea6a811ab9fc52822eba8b7644f09d60e266ffea07dd4a456d94052d9f9

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'pathname'

describe TableBeet::World do
  let(:scopes) do
    mock_loader
    TableBeet::World.scopes
  end

  context 'before load steps', before_load: true do
    let(:mock_loader) { nil }

    describe '.scopes' do
      it 'should return empty hash' do
        expect(scopes).to be_empty
      end
    end
  end

  context 'after load steps' do
    let(:mock_loader) { TableBeet::Loader.new(path: FIXTURES_PATH).load }

    describe '.scopes' do
      it 'should return hash of steps' do
        expect(scopes.keys.sort).to eq(%i[test turnip].sort)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
table_beet2-0.0.5 spec/world_spec.rb
table_beet2-0.0.4 spec/world_spec.rb