brownmagik352 / BoolaBooks

iOS app for BoolaBooks
0 stars 0 forks source link

User can start a chat from detailed listing view #63

Closed brownmagik352 closed 7 years ago

brownmagik352 commented 7 years ago
brownmagik352 commented 7 years ago

related to #65?

brownmagik352 commented 7 years ago

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"

This will create a new listing with id 2 (first one is created in the given condition)

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"
brownmagik352 commented 7 years ago

having big problem with getting the channel to actually close