Created
February 10, 2012 19:27
-
-
Save ericdfields/1791983 to your computer and use it in GitHub Desktop.
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
Eric-Fieldss-MacBook-Air:sample_app eric$ rails generate integration_test static_pages | |
invoke rspec | |
create spec/requests/static_pages_spec.rb | |
Eric-Fieldss-MacBook-Air:sample_app eric$ subl spec/requests/static_pages_spec.rb | |
Eric-Fieldss-MacBook-Air:sample_app eric$ subl spec/requests/static_pages_spec.rb -w | |
Eric-Fieldss-MacBook-Air:sample_app eric$ bundle exec rspec spec/requests/static_pages_spec.rb | |
/Users/eric/Development/rails_projects/sample_app/spec/requests/static_pages_spec.rb:1:in `require': no such file to load -- spec_helper (LoadError) | |
from /Users/eric/Development/rails_projects/sample_app/spec/requests/static_pages_spec.rb:1:in `<top (required)>' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `block in load_spec_files' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `map' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load_spec_files' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:22:in `run' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:80:in `run_in_process' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:69:in `run' | |
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:10:in `block in autorun' | |
Eric-Fieldss-MacBook-Air:sample_app eric$ rs | |
rs rsh rspec rsync | |
Eric-Fieldss-MacBook-Air:sample_app eric$ script/generate | |
-bash: script/generate: No such file or directory | |
Eric-Fieldss-MacBook-Air:sample_app eric$ script/generate rspec | |
-bash: script/generate: No such file or directory | |
Eric-Fieldss-MacBook-Air:sample_app eric$ subl -w Gemfile | |
rail^AEric-Fieldss-MacBook-Air:sample_app eric$ rails generate rspec:install | |
create .rspec | |
exist spec | |
create spec/spec_helper.rb | |
Eric-Fieldss-MacBook-Air:sample_app eric$ bundle exec rspec spec/requests/static_pages_spec.rb | |
F | |
Failures: | |
1) Static pages Home page should have the content 'Sample App' | |
Failure/Error: page.should have_content('Sample App') | |
expected there to be content "Sample App" in "SampleApp\n\nStaticPages#home\nFind me in app/views/static_pages/home.html.erb\n\n\n" | |
# ./spec/requests/static_pages_spec.rb:9:in `block (3 levels) in <top (required)>' | |
Finished in 0.81078 seconds | |
1 example, 1 failure | |
Failed examples: | |
rspec ./spec/requests/static_pages_spec.rb:7 # Static pages Home page should have the content 'Sample App' | |
Eric-Fieldss-MacBook-Air:sample_app eric$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!