Skip to content

Commit

Permalink
Update receipt creation steps to include navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
drapergeek committed Nov 24, 2012
1 parent c48862d commit d96da4a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -16,6 +16,7 @@ gem 'strong_parameters'
gem 'pry'
gem 'launchy'
gem 'kaminari'
gem 'kaminari-bootstrap'

group :assets do
gem 'sass-rails', '~> 3.2.3'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -109,6 +109,9 @@ GEM
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kaminari-bootstrap (0.1.3)
kaminari (>= 0.13.0)
rails
launchy (2.1.2)
addressable (~> 2.3)
libwebsocket (0.1.5)
Expand Down Expand Up @@ -244,6 +247,7 @@ DEPENDENCIES
high_voltage
jquery-rails
kaminari
kaminari-bootstrap
launchy
pg
pry
Expand Down
5 changes: 5 additions & 0 deletions app/assets/stylesheets/application.css.scss
Expand Up @@ -4755,3 +4755,8 @@ a.badge:hover {
position: fixed;
}

h1.inline-header {
font-size:24px;
display: inline;
}

4 changes: 3 additions & 1 deletion app/views/receipts/index.html.erb
@@ -1,4 +1,6 @@
<h1>Receipts</h1>
<h1 class='inline-header'>Receipts</h1>
<%= link_to "Add New Receipt", new_receipt_path, class: "btn pull-right" %>

<table class="table table-striped">
<tr>
<th>Name</th>
Expand Down
3 changes: 2 additions & 1 deletion spec/requests/receipt_creation_spec.rb
Expand Up @@ -6,7 +6,8 @@
end

scenario 'new receipt with only required fields' do
visit new_receipt_path
click_link "Receipts"
click_link "Add New Receipt"
receipt = create(:receipt)
fill_in_required_fields_with_information(receipt)
verify_flash_for_receipt(receipt)
Expand Down

0 comments on commit d96da4a

Please sign in to comment.