Commit 49b0922b authored by Tiago Botelho's avatar Tiago Botelho Committed by André Luís

Adds documentation about the system header and footer

parent 61ba8a28
......@@ -3,7 +3,7 @@ require 'spec_helper'
describe AppearancesHelper do
describe '#header_message' do
it 'returns nil when header message field is not set' do
appearance = create(:appearance)
create(:appearance)
expect(helper.header_message).to be_nil
end
......@@ -11,7 +11,7 @@ describe AppearancesHelper do
context 'when header message is set' do
it 'includes current message' do
message = "Foo bar"
appearance = create(:appearance, header_message: message)
create(:appearance, header_message: message)
expect(helper.header_message).to include(message)
end
......@@ -20,7 +20,7 @@ describe AppearancesHelper do
describe '#footer_message' do
it 'returns nil when footer message field is not set' do
appearance = create(:appearance)
create(:appearance)
expect(helper.footer_message).to be_nil
end
......@@ -28,7 +28,7 @@ describe AppearancesHelper do
context 'when footer message is set' do
it 'includes current message' do
message = "Foo bar"
appearance = create(:appearance, footer_message: message)
create(:appearance, footer_message: message)
expect(helper.footer_message).to include(message)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment