Skip to content

Commit

Permalink
Use set_select2_field to fill in select field in customer_details_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Dec 10, 2012
1 parent 9101116 commit b30a82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/spec/requests/admin/orders/customer_details_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
fill_in "order_#{type}_address_attributes_address2", :with => "#101"
fill_in "order_#{type}_address_attributes_city", :with => "Bethesda"
fill_in "order_#{type}_address_attributes_zipcode", :with => "20170"
select "Alabama", :from => "order_#{type}_address_attributes_state_id"
set_select2_field "#order_#{type}_address_attributes_state_id", state.id
fill_in "order_#{type}_address_attributes_phone", :with => "123-456-7890"
end

Expand Down

0 comments on commit b30a82e

Please sign in to comment.