Sha256: 77422baf801e30ff1c8eed6d324fba76cda2e646d4c5b997259554a60d86b7e1

Contents?: true

Size: 545 Bytes

Versions: 8

Compression:

Stored size: 545 Bytes

Contents

require "rails_helper"

describe "magic_lamp:fixture_names" do
  it { is_expected.to depend_on(:environment) }

  it "outputs a sorted list of all the fixture names" do
    expect(MAIN_OBJECT).to receive(:puts) do |output|
      fixture_names = MagicLamp.registered_fixtures.keys.sort
      expect(output).to_not be_empty
      expect(output).to eq(fixture_names)
    end

    subject.execute
  end
end

describe "mlfn" do
  it "is an alias for magic_lamp:fixture_names" do
    expect(subject).to depend_on("magic_lamp:fixture_names")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
magic_lamp-1.5.2 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.5.1 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.5.0 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.4.1 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.4.0 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.3.1 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.3.0 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.2.0 spec/tasks/fixture_names_task_spec.rb