about summary refs log tree commit diff
path: root/spec/helpers/site_title_helper_spec.rb
blob: 8cfd9cba1c846fccb322d1f379f46db048eaef9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "rails_helper"

describe "site_title" do
  it "Uses the Setting.site_title value when it exists" do
    Setting.site_title = "New site title"

    expect(helper.site_title).to eq "New site title"
  end

  it "returns empty string when Setting.site_title is nil" do
    Setting.site_title = nil

    expect(helper.site_title).to eq ""
  end
end