Skip to content

Commit

Permalink
Fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Aug 8, 2015
1 parent e1f7f35 commit 25836ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tests/factoryboy_app/features/bad.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Test Factoryboy steps fail when expected
Feature: Test Factory Boy steps fail when expected

As an Aloe user
I want to create objects using Factoryboy
I want to create objects using Factory Boy
So that I can type less stuff


Expand Down
8 changes: 4 additions & 4 deletions tests/factoryboy_app/features/good.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Test Factoryboy steps
Feature: Test Factory Boy steps

As an Aloe user
I want to create objects using Factoryboy
I want to create objects using Factory Boy
So that I can type less stuff


Expand All @@ -24,7 +24,7 @@ Feature: Test Factoryboy steps
| koterpillar |

Then I made 2 users
And passwd contains:
And the user list contains:
| username | email |
| danni | danni@example.org |
| koterpillar | koterpillar@example.org |
Expand All @@ -36,7 +36,7 @@ Feature: Test Factoryboy steps
| jessie |

Then I made 3 users
And passwd contains:
And the user list contains:
| username | email |
| jessie | jessie@example.org |
| jessie | jessie@example.org |
Expand Down
6 changes: 3 additions & 3 deletions tests/factoryboy_app/features/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def count_users(self, nusers):
assert_equal(nusers, len(User.users))


@step('passwd contains')
@step('the user list contains')
def check_users(self):
"""Look for users in my user list"""

Expand All @@ -85,6 +85,6 @@ def check_users(self):


@after.each_example
def clear_passwd(scenario, outline, steps):
"""Clear the passwd table between tests"""
def clear_user_list(scenario, outline, steps):
"""Clear the user list between tests"""
User.users = []
6 changes: 3 additions & 3 deletions tests/functional/test_factoryboy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""
Basic scenario tests.
Test Factory Boy steps.
"""

from __future__ import (absolute_import, division,
Expand All @@ -35,12 +35,12 @@
@in_directory('tests/factoryboy_app')
class FactoryBoyTest(FeatureTest):
"""
Test that calculator feature works as expected.
Test Factory Boy steps.
"""

def test_factoryboy(self):
"""
Test running the calculator feature.
Test Factory Boy steps.
"""

self.assert_feature_success('features/good.feature')
Expand Down

0 comments on commit 25836ff

Please sign in to comment.