Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 723 Bytes
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
expect(builder.make_bin).to eq "fake_make"
end
end
it "will use the env variable for #qmake_bin" do
with_env_vars("QMAKE" => "fake_qmake") do
expect(builder.qmake_bin).to eq "fake_qmake"
end
end
it "defaults the #make_bin" do
with_env_vars("MAKE_BIN" => nil) do
expect(builder.make_bin).to eq 'make'
end
end
it "defaults the #qmake_bin" do
with_env_vars("QMAKE" => nil) do
expect(builder.qmake_bin).to eq 'qmake'
end
end
end