spec/lib/api_spec.rb in conjur-api-4.6.0 vs spec/lib/api_spec.rb in conjur-api-4.6.1
- old
+ new
@@ -160,9 +160,17 @@
end
its "host" do
should == "https://authz-v4-conjur.herokuapp.com"
end
end
+ context "in appliance" do
+ before(:each) do
+ Conjur::Configuration.any_instance.stub(:env).and_return "appliance"
+ end
+ its "host" do
+ should == "http://localhost:5100"
+ end
+ end
context "in named production version" do
before(:each) do
Conjur::Configuration.any_instance.stub(:env).and_return "production"
Conjur::Configuration.any_instance.stub(:stack).and_return "waffle"
end