spec/collection_spec.rb in zendesk_api-0.0.9 vs spec/collection_spec.rb in zendesk_api-0.1.1
- old
+ new
@@ -264,9 +264,15 @@
end
context "method missing" do
before(:each) { subject.stub(:fetch).and_return([1, 2, nil, 3]) }
+ context "with an class method on the resource class" do
+ it "should pass methods to class if defined" do
+ subject.test.should == "hi"
+ end
+ end
+
it "should pass all methods not defined to resources" do
subject.compact.should == [1, 2, 3]
end
it "should take a block" do