From 86af203200ccfddc6c8ee2107cb1f87d15729714 Mon Sep 17 00:00:00 2001 From: Matthew Horan Date: Wed, 27 Feb 2013 12:13:00 -0500 Subject: [PATCH] Reset environment variables in Builder spec --- spec/capybara_webkit_builder_spec.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spec/capybara_webkit_builder_spec.rb b/spec/capybara_webkit_builder_spec.rb index 81085a3..1ef7ea1 100644 --- a/spec/capybara_webkit_builder_spec.rb +++ b/spec/capybara_webkit_builder_spec.rb @@ -23,15 +23,21 @@ describe CapybaraWebkitBuilder do end it "defaults the #make_bin" do - builder.make_bin.should == 'make' + with_env_vars("MAKE_BIN" => nil) do + builder.make_bin.should == 'make' + end end it "defaults the #qmake_bin" do - builder.qmake_bin.should == 'qmake' + with_env_vars("QMAKE" => nil) do + builder.qmake_bin.should == 'qmake' + end end it "defaults #spec to the #os_specs" do - builder.spec.should == builder.os_spec + with_env_vars("SPEC" => nil) do + builder.spec.should == builder.os_spec + end end end