Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/781 Add assertDatabaseHas #789

Merged
merged 7 commits into from
Jun 23, 2019
Merged

Feature/781 Add assertDatabaseHas #789

merged 7 commits into from
Jun 23, 2019

Conversation

josephmancuso
Copy link
Member

Added new assertDatabaseHas which can be used like this:

def setUpFactories(self):
    User.create({
        'name': 'Joe',
        'email': 'user@example.com',
        'password': 'secret'
    })

def test_database_has(self):
    self.assertDatabaseHas('users.email', 'user@example.com')
    self.assertDatabaseNotHas('users.email', 'joe@example.com')

@josephmancuso josephmancuso changed the title Feature/781 Feature/781 Add assertDatabaseHas Jun 23, 2019
@josephmancuso josephmancuso merged commit fc8b7b6 into master Jun 23, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 85.281% when pulling 7b8782d on feature/781 into 9525615 on master.

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.

None yet

3 participants