mordaroso / guard-motion

Guard::Motion automatically run your RubyMotion specs (much like autotest)
MIT License
45 stars 12 forks source link

Guard hangs on empty spec #10

Open holgersindbaek opened 10 years ago

holgersindbaek commented 10 years ago

If I have an empty specification in my test, then guard just "hangs" on it. It doesn't skip it, it simply just stops and I have to close my terminal window then. This would make it hang:

context "Correct password/email combination" do

  before do
    @login_email_input.text = "demo@uninkd.com"
    @login_password_input.text = "demo1234"

    controller.login do |block|
      @block = block
      resume
    end
  end

  it "return true" do
    wait_max(10) { @block.should.equal true }
  end

  # This makes guard hang
  it "save slug"

end

Is this the intended behavior?

I'm using iTerm btw.