spec/shelly/app_spec.rb in shelly-0.0.10 vs spec/shelly/app_spec.rb in shelly-0.0.11

- old
+ new

@@ -134,6 +134,19 @@ IO.stub_chain(:popen, :read => "origin\nshelly-prod\ntest") @app.should_not be_remote_exists end end end + + describe "#git_host" do + it "should return default git host" do + @app.git_host.should == "git.shellycloud.com" + end + + context "SHELLY_GIT_HOST set" do + it "should return value of SHELLY_GIT_HOST env variable" do + ENV['SHELLY_GIT_HOST'] = "git.example.com" + @app.git_host.should == "git.example.com" + end + end + end end