1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/spec/capybara_webkit_builder_spec.rb
Mike Burns 0506f24a0a Include the code that we need
- `cin` and `cout` require iostream.
- `QT_VERSION` requires QtGlobal.
- `QSocketNotifier` requires QSocketNotifier.
- Unrelated to includes: let Qt figure out the spec.

Found by Jeremy Evans on behalf of the OpenBSD project.
2015-03-27 16:17:44 -04:00

31 lines
707 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 "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
end