spec/engineyard/cli/api_spec.rb in engineyard-0.4.0 vs spec/engineyard/cli/api_spec.rb in engineyard-0.5.0
- old
+ new
@@ -18,10 +18,10 @@
EY::CLI::API.new.should == EY::CLI::API.new("asdf")
end
context "without saved api token" do
before(:each) do
- FakeWeb.register_uri(:post, "https://cloud.engineyard.com/api/v2/authenticate", :body => %|{"api_token": "asdf"}|)
+ FakeWeb.register_uri(:post, "https://cloud.engineyard.com/api/v2/authenticate", :body => %|{"api_token": "asdf"}|, :content_type => 'application/json')
capture_stdio("\n\n") do
@token = EY::CLI::API.new
end
end
\ No newline at end of file