jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

tests aren't running in the browser when using custom boot_partial #306

Closed TrangPham closed 9 years ago

TrangPham commented 9 years ago

Hi

I'm currently trying to run the tests in the browser and use a custom boot_partial

In my teaspoon_env.rb I've set:

  config.fixture_paths = ["spec/javascripts/fixtures"]
  suite.boot_partial = "/boot"

And I have spec/javascripts/fixtures/_boot.html.erb which contains one javascript_include_tag

When I run rails s and visit localhost:3000/teaspoon/default, nothing is rendered. The javascript file is loaded though.

Am I not supposed to be able to see the tests results as I normally would without the boot_partial?

Any help is appreciated. Thank you :)

jejacks0n commented 9 years ago

I can't tell without seeing it, so try and base your boot partial off the one in the gem. Load that, see what's loaded, make a small adjustment, see if it works, etc.. my guess is that you're not telling teaspoon to execute though.

TrangPham commented 9 years ago

Ah Thank you!