Skip to content

Commit

Permalink
Carbs is now a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Jan 29, 2016
1 parent eb93591 commit b780058
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/shared/_index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= link_to "Add new #{title}",
send("new_#{@metrics.first.class.name.underscore}_path".to_sym),
<%= link_to "Add #{title}",
send("new_#{@metrics.class.to_s.split('::')[0].underscore}_path".to_sym),
class: 'btn btn-success pull-right' %>
<h1><%= title.titleize %></h1>

Expand Down
2 changes: 1 addition & 1 deletion spec/requests/glucose_measurements_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

click_link 'Delete'
expect(GlucoseMeasurement.count).to eq 2
expect(page).to have_link 'Add new glucose', href: '/glucose/new'
expect(page).to have_link 'Add glucose', href: '/glucose/new'
within 'th' do
expect(page).to have_content 'Wednesday January 27th'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/medication_events_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

click_link 'Delete'
expect(MedicationEvent.count).to eq 2
expect(page).to have_link 'Add new meds', href: '/meds/new'
expect(page).to have_link 'Add meds', href: '/meds/new'
expect(page).to_not have_content 'Sunday February 28th'
end
end
Expand Down

0 comments on commit b780058

Please sign in to comment.