spec/lib/api_spec.rb in conjur-api-2.1.0 vs spec/lib/api_spec.rb in conjur-api-2.1.1
- old
+ new
@@ -32,11 +32,11 @@
context "in production" do
before(:each) do
Conjur.stub(:env).and_return "production"
end
its "default_host" do
- should == "https://#{service_name}-v2-conjur.herokuapp.com"
+ should == "https://#{service_name}-v3-conjur.herokuapp.com"
end
end
context "in named production version" do
before(:each) do
Conjur.stub(:env).and_return "production"
@@ -79,10 +79,10 @@
context "expired" do
before {
Conjur::TokenCache.stub(:expired?).and_return true
}
it "should raise an error" do
- $stderr.should_receive(:puts).with("Token is expired and no api_key is available to renew it")
+ $stderr.should_receive(:puts).with("Token will soon expire and no api_key is available to renew it")
api.credentials
end
end
context "not expired" do