Further spec greening

This commit is contained in:
2015-09-21 16:56:39 +02:00
parent 2c3705790c
commit 61dba311fa
15 changed files with 33 additions and 119 deletions
+2 -2
View File
@@ -143,8 +143,8 @@ describe List do
# }.to broadcast_to_user(user.id).message('orders_placed_count').with(count: 2)
expect{
list.place_order(product_orders: [{'product_id' => product.id, 'quantity' => 5}], user: user)
}.to broadcast_to_supplier(supplier.id).message('orders_placed_count').with(count: 2)
list.place_order(product_orders: [{'product_id' => product.id, 'quantity' => 5}], user: user, first_order: false)
}.to broadcast_to_supplier(supplier.id).message('supplier_orders_placed_count').with(count: 2)
end
end
+1 -1
View File
@@ -10,7 +10,7 @@ describe User do
end
it 'falls back to unkown if not present' do
user.supplier_name.should == I18n.t('user.unknown_supplier_name')
user.supplier_name.should == I18n.t('supplier.unknown_user_name')
end
end