diaspora/spec/helpers/layout_helper_spec.rb
2012-11-21 18:26:17 -02:00

22 lines
523 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.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