mikimiki (9) [Avatar] Offline
#1
With the following code:

<% if state.default? %>
(Default)
<% else %>
<%= link_to "Make Default", make_default_admin_state_path(state) %>
<% end %>

after we update the db/seeds.rb file for the "New" state to have default attribute true, the feature fails because there is no link to follow. I changed my managing_states.feature to:

And I follow "Make Default" for the "Open" state
Then I should see the "Open is now the default state." message
And I follow "Make Default" for the "New" state
Then I should see the "New is now the default state." message

... I think ... (hope I am not missing something obvious.)