Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Empty spec causes infinite loop hang #207

Description

@amandapouget
it('hangs forever and it takes you days to figure out why...', () => {
  // my spec is empty right now, without an 'expect' statement
}

=> Starting...
... hangs forever until my computer is out of memory, freezes.
Adding in, expect(true).toBe(true) to the spec makes everything run just fine.

It took me forever to realize that this was the behavior I was observing. I suspected So. Many. Things. in my code before I finally realized that common denominator of when jasmine-rails hangs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions