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

one spec in back_test_repository_spec failed when run isolated spec. #407

Open
janckerchen opened this issue Nov 16, 2017 · 1 comment
Open

Comments

@janckerchen
Copy link

janckerchen commented Nov 16, 2017

run with

bundle exec rake spec SPEC=./spec/jiji/model/trading/back_test_repository_spec.rb:151

got

Failures:

  1) Jiji::Model::Trading::BackTestRepository テストが3つ登録されている場合 追加したテストは永続化され、再起動時に読み込まれる
     Failure/Error: expect(test.status).to eq :running

       expected: :running
            got: :finished

       (compared using ==)

       Diff:
       @@ -1,2 +1,2 @@
       -:running
       +:finished

     # /opt/dev/+github/unageanu/jiji2/spec/jiji/model/trading/back_test_repository_spec.rb:252:in `block (3 levels) in <top (required)>'

if execute whole spec file without line number

bundle exec rake spec SPEC=./spec/jiji/model/trading/back_test_repository_spec.rb

then got the different failure

Failures:

  1) Jiji::Model::Trading::BackTestRepository テストが3つ登録されている場合 追加したテストは永続化され、再起動時に読み込まれる
     Failure/Error: expect(status[:status]).to eq :running

       expected: :running
            got: :finished

       (compared using ==)

       Diff:
       @@ -1,2 +1,2 @@
       -:running
       +:finished

     # /opt/dev/+github/unageanu/jiji2/spec/jiji/model/trading/back_test_repository_spec.rb:254:in `block (3 levels) in <top (required)>'
@unageanu
Copy link
Owner

Thank you for reporting!

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

No branches or pull requests

2 participants