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

The failures are not logged in the right order when there are nested describes #63

Closed
daniel-g opened this issue May 24, 2012 · 1 comment

Comments

@daniel-g
Copy link

I have this:

describe 'NestedDescribes', ->

  it 'should not be nested', ->
    expect(0).toEqual(1)

  describe 'Nested 1', ->
    it 'should be nested', ->
      expect(0).toEqual(1)

  it 'should not be nested either', ->
    expect(0).toEqual(1)

And I get the following log:

NestedDescribes
  ✘ should not be nested either
    ➤ Expected 0 to equal 1.
  Nested 1
    ✘ should not be nested
      ➤ Expected 0 to equal 1.
    ✘ should be nested
      ➤ Expected 0 to equal 1.
@netzpirat
Copy link
Contributor

Thanks for reporting with a test case! It's fixed:

NestedDescribes
  ✘ should not be nested
    ➤ Expected 0 to equal 1.
  ✘ should not be nested either
    ➤ Expected 0 to equal 1.
  Nested 1
    ✘ should be nested
      ➤ Expected 0 to equal 1.
ERROR: 3 specs, 3 failures

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