{"action":"opened","issue":{"url":"https://api.github.com/repos/qrush/m/issues/58","repository_url":"https://api.github.com/repos/qrush/m","labels_url":"https://api.github.com/repos/qrush/m/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/qrush/m/issues/58/comments","events_url":"https://api.github.com/repos/qrush/m/issues/58/events","html_url":"https://github.com/qrush/m/issues/58","id":154771915,"number":58,"title":"`m` incompatible with `shoulda` gem","user":{"login":"davidcpell","id":1223820,"avatar_url":"https://avatars.githubusercontent.com/u/1223820?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcpell","html_url":"https://github.com/davidcpell","followers_url":"https://api.github.com/users/davidcpell/followers","following_url":"https://api.github.com/users/davidcpell/following{/other_user}","gists_url":"https://api.github.com/users/davidcpell/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcpell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcpell/subscriptions","organizations_url":"https://api.github.com/users/davidcpell/orgs","repos_url":"https://api.github.com/users/davidcpell/repos","events_url":"https://api.github.com/users/davidcpell/events{/privacy}","received_events_url":"https://api.github.com/users/davidcpell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-13T18:20:53Z","updated_at":"2016-05-13T18:20:53Z","closed_at":null,"body":"Hi all,\r\n\r\nIt looks like `m` is unable to detect tests written with the use of `shoulda` keywords. A test like this:\r\n\r\n```\r\nshould \"do something\" do\r\n  # assertion\r\nend\r\n```\r\n\r\n...causes an error like this, where all of the tests are found to be on lines that may not even exist:\r\n\r\n```\r\n✗ m -r test/forms/project_setup_form/column_test.rb:31                                       \r\n\r\nNo tests found on line 31. Valid tests to run:\r\n\r\ntest_: ProjectSetupFormColumn should set type to \"String\" when strings and numbers are present in a column. : m test/forms/project_setup_form/column_test.rb:399\r\ntest_: ProjectSetupFormColumn should set type to \"String\" when column is nil. : m test/forms/project_setup_form/column_test.rb:399\r\n```\r\n\r\nIn the above example, no tests are found on the supplied line and are all of the tests are thought by `m` to be on line 399. \r\n\r\n@qrush opened #4 for this 5 years ago but closed it ~6 months later after no patches were submitted. Is this something you're still interested in patches for? If so, any recommendations on which classes one might want to start with to get the parser to identify `should` as a test method?"}}