mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove redundant serializer spec, reinstate creation of order distribution charges
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user