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

Empty spec causes infinite loop hang #207

Open
amandapouget opened this issue Apr 25, 2017 · 1 comment
Open

Empty spec causes infinite loop hang #207

amandapouget opened this issue Apr 25, 2017 · 1 comment

Comments

@amandapouget
Copy link

amandapouget commented Apr 25, 2017

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.

@searls
Copy link
Member

searls commented Apr 26, 2017

Hi @mandysimon88 can you please post a minimal example project that replicates this issue? I haven't been able to

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

No branches or pull requests

2 participants