You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
352 B

  1. require "rails_helper"
  2. describe "site_title" do
  3. it "Uses the Setting.site_title value when it exists" do
  4. Setting.site_title = "New site title"
  5. expect(helper.site_title).to eq "New site title"
  6. end
  7. it "returns empty string when Setting.site_title is nil" do
  8. Setting.site_title = nil
  9. expect(helper.site_title).to eq ""
  10. end
  11. end