mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
43 lines
1,000 B
Ruby
43 lines
1,000 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
|
|
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
|
|
with_env_vars("MAKE_BIN" => nil) do
|
|
builder.make_bin.should == 'make'
|
|
end
|
|
end
|
|
|
|
it "defaults the #qmake_bin" do
|
|
with_env_vars("QMAKE" => nil) do
|
|
builder.qmake_bin.should == 'qmake'
|
|
end
|
|
end
|
|
|
|
it "defaults #spec to the #os_specs" do
|
|
with_env_vars("SPEC" => nil) do
|
|
builder.spec.should == builder.os_spec
|
|
end
|
|
end
|
|
end
|
|
|