Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 36 lines (29 sloc) 0.857 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
require 'spec_helper'
require 'capybara_webkit_builder'

describe CapybaraWebkitBuilder do
  let(:builder) { CapybaraWebkitBuilder }

  it "will use the env variable for #make_bin" do
    with_env_vars("MAKE" => "fake_make") do
      builder.make_bin.should == "fake_make"
    end
  end

  it "will use the env variable for #qmake_bin" do
    with_env_vars("QMAKE" => "fake_qmake") do
      builder.qmake_bin.should == "fake_qmake"
    end
  end

  it "will use the env variable for #os_spec" do
    with_env_vars("SPEC" => "fake_os_spec") do
      builder.spec.should == "fake_os_spec"
    end
  end

  it "defaults the #make_bin" do
    builder.make_bin.should == 'make'
  end

  it "defaults the #qmake_bin" do
    builder.qmake_bin.should == 'qmake'
  end

  it "defaults #spec to the #os_specs" do
    builder.spec.should == builder.os_spec
  end
end
Something went wrong with that request. Please try again.