Skip to content

Instantly share code, notes, and snippets.

@domagude
Created November 13, 2017 13:18
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/721f4dc239477e3dd0011753f31de021 to your computer and use it in GitHub Desktop.
Save domagude/721f4dc239477e3dd0011753f31de021 to your computer and use it in GitHub Desktop.
...
context '#leave_message_partial_path' do
it "returns an already_in_touch partial's path" do
assign('message_has_been_sent', true)
expect(helper.leave_message_partial_path).to(
eq 'posts/show/contact_user/already_in_touch'
)
end
it "returns an already_in_touch partial's path" do
assign('message_has_been_sent', false)
expect(helper.leave_message_partial_path).to(
eq 'posts/show/contact_user/message_form'
)
end
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment