Skip to content

Sending and receiving messages#11

Open
felixoppongwillborg wants to merge 20 commits intoCraftAcademy:masterfrom
felixoppongwillborg:sending_and_receiving_messages
Open

Sending and receiving messages#11
felixoppongwillborg wants to merge 20 commits intoCraftAcademy:masterfrom
felixoppongwillborg:sending_and_receiving_messages

Conversation

@felixoppongwillborg
Copy link
Copy Markdown

][PT board URL( https://www.pivotaltracker.com/story/show/173511460 )

User Story

As a user

In order to use the app

I want to be able to send and receive messages

Changes proposed in this pull request:

  • Added test for both sending and receiving messages

What I have learned working on this feature:

  • how to work with two different factories and using Warden

Odeane and others added 20 commits June 24, 2020 15:27
…created a db migartion for add_missing_indices.mailboxer_engine
…user_session_path then wrote test to locate Email to make sure i was in the right path second test was for filling in email, password and then clickon log in button
…receive message. Rewrote test for sending and receiving messages all test pass
Copy link
Copy Markdown

@emtalen emtalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not testing that the recipient actually receives the message, only that it is sent from the sender. Which is totally fine, but then you should change the description of the PR

end
end


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra lines

click_on 'Log in'
expect(page).to have_content 'Invalid Email or password.'
end
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be consistent with the indentation, use 2 spaces and not 4

expect(page).to have_content "Hej test"
end
end
end No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be consistent with the indentation, use 2 spaces and not 4

end



Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file if you are not using it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants