spec/settings_spec.rb in taza-0.8.0 vs spec/settings_spec.rb in taza-0.8.2

- old
+ new

@@ -8,17 +8,17 @@ @site_name = 'SiteName' end before :each do ENV['TAZA_ENV'] = 'isolation' - ENV['browser'] = nil - ENV['driver'] = nil + ENV['BROWSER'] = nil + ENV['DRIVER'] = nil end it "should use environment variable for browser settings" do Taza::Settings.stubs(:path).returns("spec/sandbox") - ENV['browser'] = 'foo' + ENV['BROWSER'] = 'foo' Taza::Settings.config(@site_name)[:browser].should eql(:foo) end it "should provide default values if no config file or environment settings provided" do Taza::Settings.stubs(:path).returns("spec/sandbox") @@ -26,11 +26,11 @@ Taza::Settings.config(@site_name)[:browser].should eql(:firefox) end it "should use environment variable for driver settings" do Taza::Settings.stubs(:path).returns("spec/sandbox") - ENV['driver'] = 'bar' + ENV['DRIVER'] = 'bar' Taza::Settings.config(@site_name)[:driver].should eql(:bar) end it "should be able to load the site yml" do Taza::Settings.stubs(:path).returns("spec/sandbox") @@ -48,10 +48,10 @@ Taza::Settings.stubs(:path).returns("spec/sandbox") Taza::Settings.config(@site_name)[:browser].should eql(:fu) end it "should use the ENV variables if specfied instead of config files" do - ENV['browser'] = 'opera' + ENV['BROWSER'] = 'opera' Taza::Settings.expects(:config_file).returns({:browser => :fu}) Taza::Settings.stubs(:path).returns("spec/sandbox") Taza::Settings.config(@site_name)[:browser].should eql(:opera) end