Skip to content
This repository
Newer
Older
100644 36 lines (29 sloc) 0.857 kb
b72bc8a2 » halogenandtoast
2012-01-27 Allow ENV to change make, qmake, and spec options.
1 require 'spec_helper'
2 require 'capybara_webkit_builder'
3
4 describe CapybaraWebkitBuilder do
5 let(:builder) { CapybaraWebkitBuilder }
6
7 it "will use the env variable for #make_bin" do
8 with_env_vars("MAKE" => "fake_make") do
9 builder.make_bin.should == "fake_make"
10 end
11 end
12
13 it "will use the env variable for #qmake_bin" do
14 with_env_vars("QMAKE" => "fake_qmake") do
15 builder.qmake_bin.should == "fake_qmake"
16 end
17 end
18
19 it "will use the env variable for #os_spec" do
20 with_env_vars("SPEC" => "fake_os_spec") do
21 builder.spec.should == "fake_os_spec"
22 end
23 end
24
25 it "defaults the #make_bin" do
26 builder.make_bin.should == 'make'
27 end
28
29 it "defaults the #qmake_bin" do
30 builder.qmake_bin.should == 'qmake'
31 end
32
33 it "defaults #spec to the #os_specs" do
34 builder.spec.should == builder.os_spec
35 end
36 end
37
Something went wrong with that request. Please try again.