spec/support/resource_helper.rb in apitizer-0.0.1 vs spec/support/resource_helper.rb in apitizer-0.0.2

- old
+ new

@@ -13,6 +13,14 @@ def rest_http_dictionary { :index => :get, :show => :get, :create => :post, :update => :put, :delete => :delete } end + + def http_methods + [ :get, :post, :put, :patch, :delete ] + end + + def mime_type_dictionary + { :json => 'application/json', :yaml => 'application/x-yaml' } + end end