{"action":"created","issue":{"url":"https://api.github.com/repos/etorreborre/specs2/issues/321","labels_url":"https://api.github.com/repos/etorreborre/specs2/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/etorreborre/specs2/issues/321/comments","events_url":"https://api.github.com/repos/etorreborre/specs2/issues/321/events","html_url":"https://github.com/etorreborre/specs2/issues/321","id":54713232,"number":321,"title":"If Scope extends `MustExpectations` - it causes failing tests to look like running and **passing**","user":{"login":"maximn","id":817162,"avatar_url":"https://avatars.githubusercontent.com/u/817162?v=3","gravatar_id":"","url":"https://api.github.com/users/maximn","html_url":"https://github.com/maximn","followers_url":"https://api.github.com/users/maximn/followers","following_url":"https://api.github.com/users/maximn/following{/other_user}","gists_url":"https://api.github.com/users/maximn/gists{/gist_id}","starred_url":"https://api.github.com/users/maximn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximn/subscriptions","organizations_url":"https://api.github.com/users/maximn/orgs","repos_url":"https://api.github.com/users/maximn/repos","events_url":"https://api.github.com/users/maximn/events{/privacy}","received_events_url":"https://api.github.com/users/maximn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-18T22:44:27Z","updated_at":"2015-01-19T21:44:02Z","closed_at":null,"body":"Here's a sample code -\r\n``` scala\r\npackage com.sample\r\n\r\nimport org.specs2.matcher.MustExpectations\r\nimport org.specs2.mutable.SpecificationWithJUnit\r\nimport org.specs2.specification.Scope\r\n\r\n\r\nclass BadTest extends SpecificationWithJUnit {\r\n\r\n  trait ctx extends Scope with MustExpectations {}\r\n\r\n  \"Wrong statement\" should {\r\n    \"be failed by a test\" in new ctx {\r\n      true must be_===(false)\r\n    }\r\n  }\r\n}\r\n\r\n\r\n//trait ctx extends Scope with Matchers with MustExpectations {\r\n//  def someThingThatUsesMust(x: AnyRef) = x must beNull\r\n//}\r\n\r\n```\r\n\r\nAs you can see in the screenshot - IntelliJ shows the test as running and green.\r\n![IntelliJ screenshot](https://www.evernote.com/shard/s203/sh/5724bdd8-5fd1-4ff6-a149-72f923e0b406/4162cb9400269c21/res/812c08f3-ce08-49b4-9ed6-833d157c2d5c/BadTest_scala_-__testapp__-_TestApp_-____Code_TestApp_.png?resizeSmall&width=832)"},"comment":{"url":"https://api.github.com/repos/etorreborre/specs2/issues/comments/70566509","html_url":"https://github.com/etorreborre/specs2/issues/321#issuecomment-70566509","issue_url":"https://api.github.com/repos/etorreborre/specs2/issues/321","id":70566509,"user":{"login":"etorreborre","id":10988,"avatar_url":"https://avatars.githubusercontent.com/u/10988?v=3","gravatar_id":"","url":"https://api.github.com/users/etorreborre","html_url":"https://github.com/etorreborre","followers_url":"https://api.github.com/users/etorreborre/followers","following_url":"https://api.github.com/users/etorreborre/following{/other_user}","gists_url":"https://api.github.com/users/etorreborre/gists{/gist_id}","starred_url":"https://api.github.com/users/etorreborre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etorreborre/subscriptions","organizations_url":"https://api.github.com/users/etorreborre/orgs","repos_url":"https://api.github.com/users/etorreborre/repos","events_url":"https://api.github.com/users/etorreborre/events{/privacy}","received_events_url":"https://api.github.com/users/etorreborre/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T21:44:02Z","updated_at":"2015-01-19T21:44:02Z","body":"Also, in this specific example you shouldn't need to create `MustExpectations` because `MustThrownExpectations` is already mixed in `org.specs2.mutable.SpecificationWithJUnit` and allows to create expectations already. So I guess that you are creating the `ctx` trait outside of a specific `Specification` to be able to reuse it, right?"}}