I'm working through the rails tutorial at railstutorial.org -
Specifically the video.
After a bumpy start with various gem versions - things were working
well. That is until I hit the 'integration test' section. (NOTE:
Section 5.5 / listing 5.33 in the web tutorial)
As instructed in the video I added this to layout_links_spec.rb ...
it "should have the right links on the layout" do
response.should have_selector('title', :content => "Home")
Now when I run the 'rspec spec/' - I get this error ...
Failure/Error: response.should have_selector('title', :content =>
expected following output to contain a <title>Home</title> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://
Before adding this last spec - all my rspec tests worked - aka I was
My current Gemfile contains ...
group :development do
gem 'rspec-rails', '2.3.0'
group :test do
gem 'rspec', '2.3.0'
gem 'webrat', '0.7.1'
gem 'spork', '0.8.4'
as recommended by the railstutorial site ->
Any help would be extremely appreciated. I really want to embrace to
BDD / TDD - but these gem 'issues' are really frustrating.