Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
as
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Dec 11, 2013
1 parent 5c16d21 commit 6726446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tours/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="col-md-6 col-md-offset-3">
<% @tours.each do |tour| %>
<div class="well">
<p> <%= tour.name %>
<p> <%= tour.name %> <%= link_to "Buchen", new_wish_path %>
<% if user_signed_in? && current_user.has_role?('admin') %>
<%= link_to "delete", tour, method: :delete,
data: {confirm: "Are you sure?"},
Expand Down
4 changes: 4 additions & 0 deletions spec/views/tours/index.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
expect(page).not_to have_link("delete")
end

it "should have links that allow to make a wish" do
expect(page).to have_link("Buchen")
end

describe "signed in as admin" do

before do
Expand Down

0 comments on commit 6726446

Please sign in to comment.