spec/github/users/keys/get_spec.rb in github_api-0.9.0 vs spec/github/users/keys/get_spec.rb in github_api-0.9.1
- old
+ new
@@ -20,10 +20,10 @@
let(:status) { 200 }
it { should respond_to :find }
it "should fail to get resource without key id" do
- expect { subject.get nil }.to raise_error(ArgumentError)
+ expect { subject.get }.to raise_error(ArgumentError)
end
it "should get the resource" do
subject.get key_id
a_get(request_path).with(:query => { :access_token => "#{OAUTH_TOKEN}"}).