Sha256: d8f614302335e95e5d33a0a82996443da5c7517cd5e2d3a842b7fbef709506b8

Contents?: true

Size: 430 Bytes

Versions: 10

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

describe ApplicationHelper do

  describe "full_title" do
    it "should include the page title" do
      expect(full_title("foo")).to match(/foo/)
    end

    it "should include the base title" do
      expect(full_title("foo")).to match(/^Ruby on Rails Tutorial Sample App/)
    end

    it "should not include a bar for the home page" do
      expect(full_title("")).not_to match(/\|/)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_mocker-1.2.pre.10 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.9 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.8 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.7 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.6 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.5 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.4 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.3 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.2 sample_app_rails_4/spec/helpers/application_helper_spec.rb
active_mocker-1.2.pre.1 sample_app_rails_4/spec/helpers/application_helper_spec.rb