Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Proof of duplicate data and reason for cleanDatasources #41

Conversation

jrschumacher
Copy link
Contributor

No description provided.

Ryan Schumacher added 2 commits January 19, 2015 22:37
Seems unintuitive, makes assertions with counting very difficult to understand, makes cleaning up data difficult to do, etc

```
    whenCalledRemotely
      .create
        POST /xxx-test-models
          ✓ should call the method over rest
          1) should only create one model
      .findById
        GET /<dynamic>
          ✓ should retrieve the expected model in the first test
          ✓ should retrieve the expected model in subsequent tests

  32 passing (92ms)
  1 failing

  1) helpers whenCalledRemotely .create POST /xxx-test-models should only create one model:
     AssertionError: {"id":2} == {"id":3}
```
…ed up the data which is why I want the ability to clean datasources.

```
test
      GET /xxx-test-models
[ { id: 2 }, { id: 3 }, { id: 6 } ]
```
@slnode
Copy link

slnode commented Jan 20, 2015

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

@bajtos
Copy link
Contributor

bajtos commented Jan 20, 2015

As I commented elsewhere, this would be fixed by adding beforeEach.givenModel.

I think it makes sense to add the tests from this patch though, can you include them in #40 please?

@bajtos
Copy link
Contributor

bajtos commented Jan 20, 2015

@ritch I am assigning the PR to you since you are reviewing #40 too.

@jrschumacher
Copy link
Contributor Author

I think it makes sense to add the tests from this patch though, can you include them in #40 please?

Yes

@jrschumacher
Copy link
Contributor Author

@ritch closing as this PR is only an proof to the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants