5252 it "should defer #create_or_update to the resource class" do
5353 resource = ZendeskAPI ::Collection . new ( client , ZendeskAPI ::CreateOrUpdateTestResource )
5454 stub_json_request ( :post , %r{create_or_update_test_resources/create_or_update} , json ( create_or_update_test_resource : { param : "abc" } ) )
55+
5556 resource . create_or_update!
57+
58+ assert_requested ( :post , %r{create_or_update_test_resources/create_or_update$} )
5659 end
5760
5861 it "should defer #create to the resource class" do
@@ -879,7 +882,7 @@ def to_proc
879882 end
880883
881884 it "should not have more results" do
882- stub_json_request ( :get , %r{search/export\? query=hello} , json ( :results => [ ] ,
885+ stub_json_request ( :get , %r{search/export\? query=hello} , json ( :results => [ ] ,
883886 :meta => { has_more : false } ) )
884887
885888 subject . fetch
@@ -888,8 +891,8 @@ def to_proc
888891 end
889892
890893 it "should not have more pages data" do
891- stub_json_request ( :get , %r{search/export\? query=hello} , json ( :results => [ ] ,
892- :meta => { has_more : false } ,
894+ stub_json_request ( :get , %r{search/export\? query=hello} , json ( :results => [ ] ,
895+ :meta => { has_more : false } ,
893896 :links => { :next => nil } ) )
894897
895898 subject . fetch
0 commit comments