-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a256f86
commit 9d9c626
Showing
12 changed files
with
139 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.2.2 | ||
2.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<% if user_signed_in? %> | ||
<li><%= link_to 'Edit account', edit_user_registration_path %></li> | ||
<li><%= link_to 'Sign out', destroy_user_session_path, :method=>'delete' %></li> | ||
<% else %> | ||
<li><%= link_to 'Sign in', new_user_session_path %></li> | ||
<li><%= link_to 'Sign up', new_user_registration_path, data: { no_turbolink: true } %></li> | ||
<% end %> | ||
<% if user_signed_in? %> | ||
<% if current_user.try(:admin?) %> | ||
<li><%= link_to 'Users', users_path %></li> | ||
<li><%= link_to 'Coupons', coupons_path %></li> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
<%# add navigation links to this file %> | ||
<% if user_signed_in? %> | ||
<li><%= link_to 'Edit account', edit_user_registration_path %></li> | ||
<li><%= link_to 'Sign out', destroy_user_session_path, :method=>'delete' %></li> | ||
<% else %> | ||
<li><%= link_to 'Sign in', new_user_session_path %></li> | ||
<li><%= link_to 'Sign up', new_user_registration_path, data: { no_turbolink: true } %></li> | ||
<% end %> | ||
<% if user_signed_in? %> | ||
<% if current_user.try(:admin?) %> | ||
<li><%= link_to 'Users', users_path %></li> | ||
<li><%= link_to 'Coupons', coupons_path %></li> | ||
<% end %> | ||
<% end %> | ||
<li><%= link_to 'About', page_path('about') %></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% content_for :title do %>About<% end %> | ||
<h3>About the Website</h3> | ||
<p> | ||
This web application was created with | ||
<%= link_to('Rails Composer', 'http://railsapps.github.io/rails-composer/') %> | ||
from the <%= link_to('RailsApps project', 'http://railsapps.github.io/') %>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Feature: 'About' page | ||
# As a visitor | ||
# I want to visit an 'about' page | ||
# So I can learn more about the website | ||
feature 'About page' do | ||
|
||
# Scenario: Visit the 'about' page | ||
# Given I am a visitor | ||
# When I visit the 'about' page | ||
# Then I see "About the Website" | ||
scenario 'Visit the about page' do | ||
visit 'pages/about' | ||
expect(page).to have_content 'About the Website' | ||
end | ||
|
||
end |
Oops, something went wrong.