diaspora/spec/helpers/layout_helper_spec.rb
Fábián Tamás László fb9b3e35c3 Put current user into gon
Fixed bug in app.js, removed unnecessray test
2013-07-06 12:44:08 +02:00

22 lines
528 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe LayoutHelper do
describe "#page_title" do
context "passed blank text" do
it "returns Diaspora*" do
page_title.to_s.should == pod_name
end
end
context "passed text" do
it "returns the text" do
text = "This is the title"
page_title(text).should == text
end
end
end
end