Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

"No runnable methods" error #18

Open
xvrl opened this issue Oct 8, 2013 · 1 comment
Open

"No runnable methods" error #18

xvrl opened this issue Oct 8, 2013 · 1 comment

Comments

@xvrl
Copy link

xvrl commented Oct 8, 2013

Getting "No runnable methods" error with the following Spec using simplespec 0.8.4 with scala 2.10.2
The culprit seems to be the map. If I initialize the data directly using Seq(...) it works fine.

This code also works fine using scala 2.9.2 and simplespec 0.7.0

package com.test

import org.junit.Test
import com.simple.simplespec.Spec

class TestSpec extends Spec {
  val data: Seq[Double] = (0 to 2) map (_ * 2.0)

  class `A Spec` {
    @Test def `must work` {
      data must be(Seq(0.0, 2.0, 4.0))
    }
  }
}
@swenson
Copy link
Contributor

swenson commented Dec 2, 2013

Unfortunately, I think this is due to Scala 2.10.2 using an anonymous inner class to implement the inline map there.

I'm not sure we can handle this very well. I can look to see if we can filter out anonymous inner classes that are autogenerated.

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