spec/contextio/api/url_builder_spec.rb in contextio-1.2.2 vs spec/contextio/api/url_builder_spec.rb in contextio-1.2.3

- old
+ new

@@ -18,15 +18,15 @@ context "when passed a ConnectToken" do context "with an account" do let(:account) { double('account', id: 'account_id') } let(:resource) { ContextIO::ConnectToken.new(api, token: 'token', account: account) } - it { should eq('accounts/account_id/connect_tokens/token') } + it { should eq('connect_tokens/token') } end context "without an account" do - let(:resource) { ContextIO::ConnectToken.new(api, token: 'token', api_attributes: { 'account' => { } }) } + let(:resource) { ContextIO::ConnectToken.new(api, token: 'token') } it { should eq('connect_tokens/token') } end end @@ -36,10 +36,10 @@ let(:resource) { ContextIO::ConnectTokenCollection.new(api, account: account) } it { should eq('accounts/account_id/connect_tokens') } end - context "wiehout an account" do + context "without an account" do let(:resource) { ContextIO::ConnectTokenCollection.new(api) } it { should eq('connect_tokens') } end end