spec/github/repos/comments/get_spec.rb in github_api-0.9.0 vs spec/github/repos/comments/get_spec.rb in github_api-0.9.1

- old
+ new

@@ -19,11 +19,15 @@ let(:body) { fixture('repos/commit_comment.json') } let(:status) { 200 } it { should respond_to(:find) } - it "should fail to get resource without comment id" do - expect { subject.get user, repo, nil }.to raise_error(ArgumentError) + it 'failse to get resource without required arguments' do + expect { subject.get }.to raise_error(ArgumentError) + end + + it 'fails to get resource without all required arguments' do + expect { subject.get user }.to raise_error(ArgumentError) end it "should get the resource" do subject.get user, repo, comment_id a_get(request_path).should have_been_made