spec/rest_spec.rb in fuelsdk-0.0.3 vs spec/rest_spec.rb in fuelsdk-0.0.4

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' describe FuelSDK::Rest do - let(:client) { FuelSDK::ET_Client.new } + let(:client) { FuelSDK::Client.new } subject { client } it { should respond_to(:rest_get) } it { should respond_to(:rest_client) } it { should respond_to(:complete_url) } @@ -36,10 +36,10 @@ it 'handles missing url properties' do expect( client.get_url_properties "some_url/%{parent}/%{child}", {'parent'=> 1, 'other' => 1} ).to eq({'parent' => 1}) end - it 'remaining properties are query params' do + it 'filters url properties from properties leaving query params' do properties = {'parent'=> 1, 'other' => 1} client.get_url_properties "some_url/%{parent}/%{child}", properties expect(properties).to eq 'other' => 1 end end