Skip to content

Commit

Permalink
fixed rspec error.
Browse files Browse the repository at this point in the history
  • Loading branch information
saberma committed Aug 2, 2012
1 parent 5788733 commit 7da158b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/observers/webhook_observer.rb
Expand Up @@ -6,7 +6,7 @@ def before_update(order)
shop = order.shop
if order.fulfillment_status_changed? and order.fulfilled?
shop.webhooks.orders_fulfilled.each do |webhook|
options = { body: Rabl::Renderer.json(order, 'orders/show', view_path: 'app/views/api/v1') }
options = { body: Rabl::Renderer.json(order, 'api/v1/orders/show', view_path: 'app/views') }
options[:headers] = {
X_SHOPQI_EVENT: KeyValues::Webhook::Event::ORDERS_FULFILLED,
X_SHOPQI_DOMAIN: shop.shopqi_domain,
Expand Down
2 changes: 1 addition & 1 deletion spec/models/webhook_spec.rb
Expand Up @@ -45,7 +45,7 @@
with_resque do
fulfillment
end
data = Rabl::Renderer.json(order.reload, 'orders/show', view_path: 'app/views/api/v1')
data = Rabl::Renderer.json(order.reload, 'api/v1/orders/show', view_path: 'app/views')
headers = {
X_SHOPQI_EVENT: 'orders/fulfilled',
X_SHOPQI_DOMAIN: shop.shopqi_domain,
Expand Down

0 comments on commit 7da158b

Please sign in to comment.