Remove redundant serializer spec, reinstate creation of order distribution charges

This commit is contained in:
Rohan Mitchell
2014-01-08 13:22:34 +11:00
parent 4f7fdd430f
commit dd16934496
3 changed files with 4 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
require 'open_food_network/distribution_change_validator'
#ActiveSupport::Notifications.subscribe('spree.order.contents_changed') do |name, start, finish, id, payload|
#payload[:order].reload.update_distribution_charge!
#end
ActiveSupport::Notifications.subscribe('spree.order.contents_changed') do |name, start, finish, id, payload|
payload[:order].reload.update_distribution_charge!
end
Spree::Order.class_eval do
belongs_to :order_cycle

View File

@@ -566,7 +566,7 @@ feature %q{
end
def checkout_fees_table
table = page.find 'tbody'
table = page.find 'tbody#cart_adjustments'
rows = table.all 'tr'
rows.map { |row| row.all('td').map { |cell| cell.text.strip } }
end

View File

@@ -1,9 +0,0 @@
require 'spec_helper'
describe Spree::ImageSerializer do
it "should give us the small url" do
image = Spree::Image.new(attachment: double(:attachment))
image.attachment.should_receive(:url).with(:small, false)
Spree::ImageSerializer.new(image).to_json
end
end