Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix specs

  • Loading branch information...
commit c81156234d07b5b14157c82205ed015c74d05c6a 1 parent 975ef30
@mattwynne mattwynne authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/relish/commands/base_spec.rb
View
8 spec/relish/commands/base_spec.rb
@@ -7,14 +7,14 @@ module Command
describe '#url' do
context 'host passed in command line' do
let(:base) { described_class.new(['--host', 'test.com']) }
- specify { base.url.should eq('http://test.com/api') }
+ specify { base.url.should eq('https://test.com/api') }
end
context 'host not passed in command line' do
let(:base) { described_class.new }
it 'returns the default host' do
- base.url.should eq("http://#{Relish.default_host}/api")
+ base.url.should eq("https://#{Relish.default_host}/api")
end
end
end
@@ -52,7 +52,7 @@ def api_endpoint(name, credentials)
endpoint = double
RestClient::Resource.stub(:new).
- with(anything, :user => user, :password => password).
+ with(anything, :user => user, :password => password, :headers => anything).
and_return name => endpoint
endpoint
@@ -99,4 +99,4 @@ def api_endpoint(name, credentials)
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.