I find this question below to be very similar, so I will use the text.The solution didn't work because I don't have (Can't find anywhere) the `spec/support/utilities.rb` I'm with rails 4 (dk if it's relevant) and the `bundle guard` does not run.

I'm going through [Chapter 5 of RailsTutorial.org](http://ruby.railstutorial.org/chapters/filling-in-the-layout#sec-pretty_rspec).

I have one test that I can't get to work no matter what I do. It passes when I put in the string the variable passes, but not when I put in the variable itself.

The error says **undefined method 'full\_title'** 

Doing a superficial test, the desired content displays in the app, the title includes the full title with 'Help'

Here is my code:

```
  describe "Help page" do
    before { visit help_path }

    it { should have_content('Help') }
    it { should have_title(full_title('Help')) }
  end

```

This is when the error says **undefined method 'full\_title'**

It passes when I use this code:

```
require 'spec_helper'

describe "User pages" do

  subject { page }

  describe "Help page" do
    before { visit help_path }

    it { should have_content('Help') }
    it { should have_title("Ruby on Rails Tutorial Sample App") }
  end

```

Thanks for your help!

EDIT : I have defined full\_title in application\_helper.rb 

```
def full_title(page_title)
    base_title = "Ruby on Rails Tutorial Sample App" 
        return base_title if page_title.empty? 
        return "#{page_title} | #{base_title}" 
    end
end

```