Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active November 15, 2017 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/6ffc2667bc58baa8704c02dec0ee60ff to your computer and use it in GitHub Desktop.
Save domagude/6ffc2667bc58baa8704c02dec0ee60ff to your computer and use it in GitHub Desktop.
...
context '#load_private_messages' do
let(:conversation) { create(:private_conversation) }
it "returns load_messages partial's path" do
create(:private_message, conversation_id: conversation.id)
expect(helper.load_private_messages(conversation)).to eq (
'private/conversations/conversation/messages_list/link_to_previous_messages'
)
end
it "returns empty partial's path" do
expect(helper.load_private_messages(conversation)).to eq (
'shared/empty_partial'
)
end
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment