spec/github/issues/milestones/get_spec.rb in github_api-0.9.0 vs spec/github/issues/milestones/get_spec.rb in github_api-0.9.1
- old
+ new
@@ -19,9 +19,11 @@
let(:body) { fixture('issues/milestone.json') }
let(:status) { 200 }
it { subject.should respond_to :find }
+ it { expect { subject.get }.to raise_error(ArgumentError) }
+
it "should fail to get resource without milestone id" do
expect { subject.get user, repo, nil }.to raise_error(ArgumentError)
end
it "should get the resource" do