0

Capybara test output doesn't match spec

When I run a test, the output reads like this:

expected #has_content?("Nevermind") to return true, got false

That's fine--makes sense. But the spec reads like so:

    it "should have the content 'Nevermind'" do
      visit '/pages/home'
      expect(page).to have_content('Nevermind')
    end


I have the following in my Gemfile:

group :development, :test do
  gem 'rspec-rails'
  gem 'spork-rails', github: 'sporkrb/spork-rails'
  gem 'guard-spork'
  gem 'childprocess'
end


group :test do
  gem 'selenium-webdriver'
  gem 'capybara'
end


group :production do
  gem 'rails_12factor'
end


Is this just the way RubyMine rolls? Should the output verbiage match the spec? Or is something wrong?

1 comment

Please sign in to leave a comment.