Skip to content

Commit

Permalink
actingAs improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Jun 9, 2019
1 parent 517794d commit f66d4dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion masonite/testing/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def patch(self, url, params={}):
def delete(self, url, params={}):
return self.json('DELETE', url, params)

def acting_as(self, user):
def actingAs(self, user):
self.acting_user = user
return self

Expand Down
2 changes: 1 addition & 1 deletion tests/testing/test_route_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_has_middleware(self):

def test_can_have_user(self):
self.assertTrue(
self.acting_as(User.find(1)).post('/unit/test/user').contains('Joe')
self.actingAs(User.find(1)).post('/unit/test/user').contains('Joe')
)

def test_json(self):
Expand Down

0 comments on commit f66d4dc

Please sign in to comment.