Closed brownmagik352 closed 7 years ago
related to #65?
Scenario: Start a chat about a listing and have it be visible by the correct people Given a listing exists from user "example1@email.com"
And I log in with email "example2@email.com" and password "password"
When I send a POST request to "/api/v1/conversations/start" with the following:
"""
{ "listing_id" : 2 }
"""
Then the response status should be "200"
And the response schema should match "conversation"
Given I log in with email "example1@email.com" and password "password"
When I send a GET request to "/api/v1/conversations/2"
Then the response status should be "200"
And the response schema should match "conversation"
Given I log in with email "example2@email.com" and password "password"
When I send a GET request to "/api/v1/conversations/2"
Then the response status should be "200"
And the response schema should match "conversation"
Given I log in with email "example3@email.com" and password "password"
When I send a GET request to "/api/v1/conversations/2"
Then the response status should be "403"
having big problem with getting the channel to actually close