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

Flush Cache After Scenario #6

Merged
merged 1 commit into from
Oct 1, 2016
Merged

Flush Cache After Scenario #6

merged 1 commit into from
Oct 1, 2016

Conversation

weblee
Copy link
Contributor

@weblee weblee commented Jan 19, 2015

When using ScenarioOutline the Cache still persists even though setting the driver to be array. Adding Cache flush resolves this issue.

When using ScenarioOutline the Cache still persists even though setting the driver to be array. Adding Cache flush resolves this issue.
@laracasts
Copy link
Collaborator

Hmm - even when you've set the driver to be array? Not sure how that's possible.

I'll have to look into this more...

@weblee
Copy link
Contributor Author

weblee commented Jan 20, 2015

Yea this drove me crazy for a few hours. Here is striped down version of the Feature.

Feature: Product Search
  In order to book a product
  As an customer
  I need to be able perform a product search

  Scenario Outline: Single product search
    Given a product named <name>
    And it has a price of <price>
    When I perform a search
    Then I should see a total of $<total>

  Examples:
    | name  | price | total |
    | Ball  | 5     | 5     |
    | Ball  | 10    | 10    |    

The product is searched by a ProductCacheRepository which is a decorator for the ProductDbRepository.

So the second outline should be 10 for total but was showing 5 from the cache on the previous loop.

@alnutile alnutile merged commit 9c10453 into laracasts:master Oct 1, 2016
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.

3 participants