Sha256: 725c572b7d719af3589dadd62163deecb71fecc8cc270cf50f70bbcaf965028d

Contents?: true

Size: 553 Bytes

Versions: 14

Compression:

Stored size: 553 Bytes

Contents

# encoding: UTF-8

require "spec_helper"

describe Tetra::Kit do
  include Tetra::Mockers

  before(:each) do
    create_mock_project
  end

  let(:instance) { Tetra::Kit.new(@project) }

  after(:each) do
    delete_mock_project
  end

  describe "#find_executable"  do
    it "finds an executable in kit" do
      create_mock_executable("any")
      expect(instance.find_executable("any")).to eq mock_executable_dir("any")
    end
    it "doesn't find an executable in kit" do
      expect(instance.find_executable("any")).to be_nil
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tetra-2.0.6 spec/lib/fine/kit_spec.rb
tetra-2.0.5 spec/lib/fine/kit_spec.rb
tetra-2.0.4 spec/lib/fine/kit_spec.rb
tetra-2.0.3 spec/lib/fine/kit_spec.rb
tetra-2.0.2 spec/lib/fine/kit_spec.rb
tetra-2.0.1 spec/lib/fine/kit_spec.rb
tetra-2.0.0 spec/lib/fine/kit_spec.rb
tetra-1.2.2 spec/lib/kit_spec.rb
tetra-1.2.1 spec/lib/kit_spec.rb
tetra-1.2.0 spec/lib/kit_spec.rb
tetra-1.1.0 spec/lib/kit_spec.rb
tetra-1.0.0 spec/lib/kit_spec.rb
tetra-0.54.0 spec/lib/kit_spec.rb
tetra-0.53.0 spec/lib/kit_spec.rb