Sha256: c16925c08c2d8ac0e5b897ebb326490b4b76091b7b7ecf7874ca7c1f210fec8f

Contents?: true

Size: 587 Bytes

Versions: 6

Compression:

Stored size: 587 Bytes

Contents

require "spec_helper"

describe Konstant::Builder do

  it "should handle a missing build script" do
    project = Konstant::Project.new("noexist")
    runner = described_class.new project
    runner.run
    expect(project.status).to eq(127)
  end

  it "should store the build's output and error output", :fixture_projects => true do
    runner = described_class.new Konstant::Project.new("test_project_01")
    runner.run

    expect(runner.build_stdout).to eq("some output\n")
    expect(runner.build_stderr).to eq("some warning\n")
    expect(runner.build_status).to eq(0)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
konstant-0.1.2 spec/konstant/builder_spec.rb
konstant-0.1.1 spec/konstant/builder_spec.rb
konstant-0.1.0 spec/konstant/builder_spec.rb
konstant-0.0.10 spec/konstant/builder_spec.rb
konstant-0.0.9 spec/konstant/builder_spec.rb
konstant-0.0.8 spec/konstant/builder_spec.rb