Commit 513108c
Changed files (2)
app
views
profiles
spec
features
app/views/profiles/edit.html.erb
@@ -25,7 +25,7 @@
<legend><%= Profile.human_attribute_name(:home_gym) %></legend>
<p id="home-gym-name"><%= @profile.gym.try(:name) %></p>
<%= f.hidden_field(:gym_id) %>
- <a data-open="homeGymModal"><%= t('.choose_home_gym') %></a>
+ <button data-open="homeGymModal" class="button" type="button"><%= t('.choose_home_gym') %></button>
</fieldset>
<%= f.submit t(".save"), class: "button" %>
<% end %>
spec/features/profiles_spec.rb
@@ -44,7 +44,7 @@ feature "Profiles", type: :feature do
allow(Gym).to receive(:create_from_yelp!).and_return(gym)
VCR.use_cassette("home_gym") do
- subject.click_link(I18n.t("profiles.edit.choose_home_gym"))
+ subject.click_button(I18n.t("profiles.edit.choose_home_gym"))
subject.choose_home_gym(city: "calgary", name: "sait")
subject.save_changes