This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Aug 5, 2013 4:05 AM by imbwaldo  
imbwaldo Newbie 21 posts since
Sep 22, 2011
Currently Being Moderated

Jul 28, 2013 6:54 AM

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')


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'

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

group :production do
  gem 'rails_12factor'
Is this just the way RubyMine rolls? Should the output verbiage match the spec? Or is something wrong?

More Like This

  • Retrieving data ...