Fix display of state_name, after attribute was renamed in serializer

This commit is contained in:
Rohan Mitchell
2014-08-07 15:08:07 +10:00
parent c2690d0c20
commit f8c71ced45
4 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
.highlight
.highlight-top
%p.right
{{ [enterprise.address.city, enterprise.address.state] | printArray}}
{{ [enterprise.address.city, enterprise.address.state_name] | printArray}}
%h3{"ng-if" => "enterprise.is_distributor"}
%a{"bo-href" => "enterprise.path", "ofn-empties-cart" => "enterprise", bindonce: true}
%i.ofn-i_040-hub

View File

@@ -11,6 +11,6 @@
%i.ofn-i_033-open-sign{"bo-if" => "hub.active"}
%i.ofn-i_032-closed-sign{"bo-if" => "!hub.active"}
{{hub.name}}
.button-address {{ hub.address.city }} , {{hub.address.state}}
.button-address {{ hub.address.city }} , {{hub.address.state_name}}
%i.ofn-i_007-caret-right

View File

@@ -20,5 +20,5 @@
%i.ofn-i_033-open-sign{"bo-if" => "enterprise.active"}
%i.ofn-i_032-closed-sign{"bo-if" => "!enterprise.active"}
{{enterprise.name}}
.button-address {{ enterprise.address.city }} , {{enterprise.address.state}}
.button-address {{ enterprise.address.city }} , {{enterprise.address.state_name}}
%i.ofn-i_007-caret-right

View File

@@ -17,5 +17,6 @@ feature 'Groups', js: true do
page.should have_content enterprise.name
open_enterprise_modal enterprise
modal_should_be_open_for enterprise
page.should have_content "Herndon, Vic"
end
end