2015-10-05 12:40:08 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
|
|
describe ApplicationHelper do
|
|
|
|
|
describe '.title' do
|
|
|
|
|
it 'sets content for :title' do
|
|
|
|
|
helper.title 'test'
|
2017-02-26 18:22:28 +01:00
|
|
|
expect(view.content_for(:title)).to eq 'test'
|
2015-10-05 12:40:08 +02:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|