Sha256: f72912c58a6d5f2b6f52cc5b3cd96c94baae14171bd7f2a0787fb89bfa2e4c9f

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 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(MagicLamp::Genie.instance).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

6 entries across 6 versions & 1 rubygems

Version Path
magic_lamp-1.8.1 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.8.0 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.7.0 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.6.2 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.6.1 spec/tasks/fixture_names_task_spec.rb
magic_lamp-1.6.0 spec/tasks/fixture_names_task_spec.rb