Text change

This commit is contained in:
Will Marshall
2014-04-04 12:36:12 +13:00
parent 718e295f3f
commit 44049da3cb
2 changed files with 5 additions and 3 deletions

View File

@@ -24,12 +24,12 @@
.large-6.columns
= ba.text_field :lastname, "ng-model" => "order.bill_address.lastname"
%fieldset
%fieldset#billing
%legend Billing Address
= f.fields_for :bill_address, @order.bill_address do |ba|
.row
.large-12.columns
= ba.text_field :address1, label: "Billing Address",
= ba.text_field :address1,
"ng-model" => "order.bill_address.address1"
.row
.large-12.columns

View File

@@ -72,7 +72,9 @@ feature "As a consumer I want to check out my cart", js: true do
it "copies billing address to hidden shipping address fields" do
choose(sm1.name)
check "Shipping address same as billing address?"
fill_in "Billing Address", with: "testy"
within "#billing" do
fill_in "Address", with: "testy"
end
within "#ship_address_hidden" do
find("#order_ship_address_attributes_address1", visible: false).value.should == "testy"
end