Make Leave Distributor link more intuitive

This commit is contained in:
Rohan Mitchell
2012-07-01 11:33:40 +10:00
parent 258559f9d0
commit 86847d99da
2 changed files with 3 additions and 3 deletions

View File

@@ -15,5 +15,5 @@
= link_to distributor.name, root_path
- else
%span.inactive= distributor.name
- if current_distributor && order.can_change_distributor?
%li.nowrap= link_to 'Leave distributor', deselect_distributors_path
- if current_distributor && order.can_change_distributor?
= button_to 'Browse All Distributors', deselect_distributors_path, :method => :get

View File

@@ -71,7 +71,7 @@ feature %q{
# When I select the distributor and then leave it
visit spree.root_path
click_link d.name
click_link 'Leave distributor'
click_button 'Browse All Distributors'
# Then I should have left the distributor
page.should_not have_selector '#current-distributor', :text => 'You are shopping at Melb Uni Co-op'