Sha256: 012ce53ffe0bb44c41f290a99bf2f0de6596b168003e9962509232cd6e8efed6
Contents?: true
Size: 596 Bytes
Versions: 4
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' describe Manageable::ApplicationHelper, "setting the page title" do it "sets the title attribute when #page_title is called with an argument" do helper.manageable_page_title "Example" helper.instance_variable_get("@title").should eq("Example") end it "returns the title when #page_title is called with no arguments" do helper.manageable_page_title "A Title" helper.manageable_page_title.should eq("A Title") end it "returns 'Untitled Page' if no other value has been set" do helper.manageable_page_title.should eq("Untitled Page") end end
Version data entries
4 entries across 4 versions & 1 rubygems