Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?

后端 未结 11 1075
春和景丽
春和景丽 2020-12-03 02:35

I\'m following the rails tutorial here: http://railstutorial.org/chapters/filling-in-the-layout#top

When I run \"rspec spec/\", I get a bunch of errors that look lik

11条回答
  •  感动是毒
    2020-12-03 03:12

    I GOT IT WORKING

    W__A__Y__! more information than what you need, but for what it's worth, this Gemfile ...

    source 'http://rubygems.org'
    
    gem 'rails', '3.0.3'
    
    # Bundle edge Rails instead: 
    # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3-ruby', :require => 'sqlite3' # Use unicorn as the web server
    # gem 'unicorn' # Deploy with Capistrano
    # gem 'capistrano' # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
    # gem 'ruby-debug'
    # gem 'ruby-debug19' # Bundle the extra gems:
    # gem 'bj'
    # gem 'nokogiri'
    # gem 'sqlite3-ruby', :require => 'sqlite3'
    # gem 'aws-s3', :require => 'aws/s3'
    # Bundle gems for the local environment. Make sure to
    # put test-only gems in this group so their generators
    # and rake tasks are available in development mode:
    # group :development, :test do
    # gem 'webrat'
    # end
    group :test, :development do
    gem 'rspec-rails', '2.0.0.beta.18'
    # gem 'capybara'
    gem 'webrat', '0.7.1'
    gem 'database_cleaner'
    gem 'cucumber-rails'
    gem 'cucumber'
    gem 'spork'
    gem 'launchy'
    end

    ... after I run ...

    $ bundle install
    

    ... and ...

    $ bundle update webrat
    

    ... results in this ... bundle ...

    Using rake (0.8.7) 
    Using abstract (1.0.0)
    Using activesupport (3.0.3)
    Using builder (2.1.2)
    Using i18n (0.5.0)
    Using activemodel (3.0.3)
    Using erubis (2.6.6)
    Using rack (1.2.1)
    Using rack-mount (0.6.13)
    Using rack-test (0.5.7)
    Using tzinfo (0.3.23)
    Using actionpack (3.0.3)
    Using mime-types (1.16)
    Using polyglot (0.3.1)
    Using treetop (1.4.9)
    Using mail (2.2.14)
    Using actionmailer (3.0.3)
    Using arel (2.0.7)
    Using activerecord (3.0.3)
    Using activeresource (3.0.3)
    Using bundler (1.0.7)
    Using configuration (1.2.0)
    Using diff-lcs (1.1.2)
    Using json (1.4.6)
    Using gherkin (2.3.3)
    Using term-ansicolor (1.0.5)
    Using cucumber (0.10.0)
    Using cucumber-rails (0.3.2)
    Using database_cleaner (0.6.0)
    Using launchy (0.3.7)
    Using nokogiri (1.4.4)
    Using thor (0.14.6)
    Using railties (3.0.3)
    Using rails (3.0.3)
    Using rspec-core (2.4.0)
    Using rspec-expectations (2.4.0)
    Using rspec-mocks (2.4.0)
    Using rspec (2.4.0)
    Using webrat (0.7.1)
    Using rspec-rails (2.0.0.beta.18)
    Using spork (0.8.4)
    Using sqlite3-ruby (1.3.2)

    ... which got all of the sample application tests (through the end of Chapter 5) to run again.

提交回复
热议问题