{"action":"created","issue":{"url":"https://api.github.com/repos/modeset/teaspoon/issues/492","repository_url":"https://api.github.com/repos/modeset/teaspoon","labels_url":"https://api.github.com/repos/modeset/teaspoon/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/modeset/teaspoon/issues/492/comments","events_url":"https://api.github.com/repos/modeset/teaspoon/issues/492/events","html_url":"https://github.com/modeset/teaspoon/issues/492","id":163810322,"number":492,"title":"Testing in engine Not loading *_spec.js ","user":{"login":"ngelx","id":515207,"avatar_url":"https://avatars.githubusercontent.com/u/515207?v=3","gravatar_id":"","url":"https://api.github.com/users/ngelx","html_url":"https://github.com/ngelx","followers_url":"https://api.github.com/users/ngelx/followers","following_url":"https://api.github.com/users/ngelx/following{/other_user}","gists_url":"https://api.github.com/users/ngelx/gists{/gist_id}","starred_url":"https://api.github.com/users/ngelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngelx/subscriptions","organizations_url":"https://api.github.com/users/ngelx/orgs","repos_url":"https://api.github.com/users/ngelx/repos","events_url":"https://api.github.com/users/ngelx/events{/privacy}","received_events_url":"https://api.github.com/users/ngelx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-05T09:40:51Z","updated_at":"2016-07-14T11:04:25Z","closed_at":null,"body":"Hi, i'm working on an engine (gem) that has some js code to be tested but seems i can't get it working. I've followed [the wiki article](https://github.com/modeset/teaspoon/wiki/Testing-Engine-Assets) and set a basic example.\r\n\r\n* Added   `s.add_development_dependency 'teaspoon-jasmine' ` in the gemspec file\r\n* dummy is in `spec/dummy`\r\n* spec/teaspoon_env.rb:\r\n```\r\nunless defined?(Rails)\r\n  ENV[\"RAILS_ROOT\"] = File.expand_path(\"../dummy\", __FILE__)\r\n  require File.expand_path(\"#{ENV[\"RAILS_ROOT\"]}/config/environment\", __FILE__)\r\nend\r\n\r\nTeaspoon.configure do |config|\r\n...\r\n  config.root = MyEngineName::Engine.root\r\n...\r\nend\r\n```\r\n* Rakefile: \r\n```\r\ndesc \"Run the javascript specs\"\r\ntask :teaspoon => \"app:teaspoon\"\r\n```\r\n* spec/javascripts/spec_helper.js (default as it was generated)\r\n* spec/javascripts/example_spec.js:\r\n```\r\ndescribe(\"My great feature\", function() {\r\n  it(\"Bang\", () => {\r\n    expect(true).toBe(false);\r\n  });\r\n});\r\n```\r\n\r\nThe problem is that when i try to run the test engine, i'm getting\r\n\r\n```\r\n$> teaspoon \r\nStarting the Teaspoon server...\r\nThin web server (v1.7.0 codename Dunder Mifflin)\r\nMaximum connections set to 1024\r\nListening on 127.0.0.1:57036, CTRL+C to stop\r\nTeaspoon running default suite at http://127.0.0.1:57036/teaspoon/default\r\n\r\n\r\nFinished in 0.01600 seconds\r\n0 examples, 0 failures\r\n```\r\n\r\nI've also try to run the following commands, with the same result:\r\n* $> bundle exec teaspoon\r\n* $> rake teaspoon\r\n* $> bundle exec teaspoon spec/javascripts/example_spec.js\r\n* and even $> bundle exec teaspoon spec/javascripts/non_existent_file_spec.js\r\n\r\nI have not much a clue of what is not working. As non standard app, i'm using es6 through browserify-rails (which is working ok), and got in engine.rb:\r\n\r\n```\r\nconfig.browserify_rails.paths = [\r\n    lambda { |p| p.start_with?(MyEngineName::Engine.root.join(\"app\").to_s) }\r\n]\r\n``` \r\n\r\n\r\nAny help or clue would be much appreciated."},"comment":{"url":"https://api.github.com/repos/modeset/teaspoon/issues/comments/232634302","html_url":"https://github.com/modeset/teaspoon/issues/492#issuecomment-232634302","issue_url":"https://api.github.com/repos/modeset/teaspoon/issues/492","id":232634302,"user":{"login":"ngelx","id":515207,"avatar_url":"https://avatars.githubusercontent.com/u/515207?v=3","gravatar_id":"","url":"https://api.github.com/users/ngelx","html_url":"https://github.com/ngelx","followers_url":"https://api.github.com/users/ngelx/followers","following_url":"https://api.github.com/users/ngelx/following{/other_user}","gists_url":"https://api.github.com/users/ngelx/gists{/gist_id}","starred_url":"https://api.github.com/users/ngelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngelx/subscriptions","organizations_url":"https://api.github.com/users/ngelx/orgs","repos_url":"https://api.github.com/users/ngelx/repos","events_url":"https://api.github.com/users/ngelx/events{/privacy}","received_events_url":"https://api.github.com/users/ngelx/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T11:04:25Z","updated_at":"2016-07-14T11:04:25Z","body":"I've double check it, but still running 0 examples. Also I've created an engine form strach and set up a very basic test, in order to check if the problem was some kind of weird configuration on main engine. No success either. It seems that i'm definitely missing something. \r\n\r\n[The test engine is here](https://github.com/ngelx/engine_teaspoon_example)\r\n\r\nIn Particular, the commit that add the teaspoon test/config is [this one](https://github.com/ngelx/engine_teaspoon_example/commit/d3589cc059e1679e8f3972006f791e70b073dd8c)\r\n\r\nAny help will be much appreciated."}}
{"actor":{"display_login":"ngelx"}}