Commit 54aa4bff authored by Tiago Botelho's avatar Tiago Botelho Committed by André Luís

Stubs current user to appearances helper specs

parent e94c9d62
require 'spec_helper' require 'spec_helper'
describe AppearancesHelper do describe AppearancesHelper do
before do
user = create(:user)
allow(helper).to receive(:current_user).and_return(user)
end
describe '#header_message' do describe '#header_message' do
it 'returns nil when header message field is not set' do it 'returns nil when header message field is not set' do
create(:appearance) create(:appearance)
......
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