spec/helper.rb in desk-0.3.3 vs spec/helper.rb in desk-1.0.0

- old
+ new

@@ -8,10 +8,14 @@ require 'pony' require 'rspec' require 'webmock/rspec' require 'email_spec' require 'ruby-debug' + +require 'shared_context' +require 'shared_examples' + RSpec.configure do |config| config.include WebMock::API end def a_delete(path) @@ -20,10 +24,14 @@ def a_get(path) a_request(:get, Desk.endpoint + path) end +def a_patch(path) + a_request(:patch, Desk.endpoint + path) +end + def a_post(path) a_request(:post, Desk.endpoint + path) end def a_put(path) @@ -34,9 +42,13 @@ stub_request(:delete, Desk.endpoint + path) end def stub_get(path) stub_request(:get, Desk.endpoint + path) +end + +def stub_patch(path) + stub_request(:patch, Desk.endpoint + path) end def stub_post(path) stub_request(:post, Desk.endpoint + path) end