Last active
November 15, 2017 12:22
-
-
Save domagude/6ffc2667bc58baa8704c02dec0ee60ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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