Skip to content

Instantly share code, notes, and snippets.

@harfangk
Created August 12, 2016 02:24
Show Gist options
  • Save harfangk/89db7c0e66207a2c96cee20823aca405 to your computer and use it in GitHub Desktop.
Save harfangk/89db7c0e66207a2c96cee20823aca405 to your computer and use it in GitHub Desktop.
=========================================================================================================
-> bookshelf git:(master) ✗ rake test
Run options: --seed 28100
# Running:
F
Finished in 0.035472s, 28.1911 runs/s, 56.3822 assertions/s.
1) Failure:
Visit home#test_0001_is successful [/Users/bonghyunkim/Documents/Projects/bookshelf/spec/web/features/visit_home_spec.rb:7]:
Expected # encoding: US-ASCII
"" to include "Bookshelf".
1 runs, 2 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -I"lib:spec" -I"/Users/bonghyunkim/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rake-11.2.2/lib" "/Users/bonghyunkim/.rbenv/versions/2.3.1/li
b/ruby/gems/2.3.0/gems/rake-11.2.2/lib/rake/rake_test_loader.rb" "spec/**/*_spec.rb" ]
=====================================================================================================================
spec/web/features/visit_home_spec.rb
require 'features_helper'
describe 'Visit home' do
it 'is successful' do
visit '/'
page.body.must_include('Bookshelf')
end
end
====================================================================================================================
apps/web/templates/home/index.html.erb
<h1>Bookshelf</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment