mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
31 lines
723 B
Ruby
31 lines
723 B
Ruby
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
|
|
|