spec/growthforecast/client_spec.rb in growthforecast-client-0.62.3 vs spec/growthforecast/client_spec.rb in growthforecast-client-0.62.4
- old
+ new
@@ -162,8 +162,15 @@
include_context "stub_list_graph" if ENV['MOCK'] == 'on'
before { @client.list_graph }
subject { @client.last_response }
it { should be_kind_of HTTP::Message }
end
+
+ context "#last_request_uri" do
+ include_context "stub_list_graph" if ENV['MOCK'] == 'on'
+ before { @client.list_graph }
+ subject { @client.last_request_uri }
+ it { should == "http://localhost:5125/json/list/graph" }
+ end
end
end