Teaspoon, Rails & CircleCI

rails

#1

We’ve written some JS tests using Teaspoon for our substantial Rails app.

Teaspoon runs and our tests pass fine locally, however running on CircleCI breaks everything.

Using bundle exec teaspoon in a Post hook in circle.yml, gives the following output.

Starting the Teaspoon server...
Teaspoon running default suite at http://127.0.0.1:56312/teaspoon/default
Error: Page::NotFound: /teaspoon/default
/home/ubuntu/house_seven/vendor/bundle/ruby/2.1.0/bundler/gems/slices-3f5bc4551e2e/lib/slices/tree.rb:71:in `rescue in find_by_path'
/home/ubuntu/house_seven/vendor/bundle/ruby/2.1.0/bundler/gems/slices-3f5bc4551e2e/lib/slices/tree.rb:69:in `find_by_path'
/home/ubuntu/house_seven/vendor/bundle/ruby/2.1.0/bundler/gems/slices-3f5bc4551e2e/app/controllers/pages_controller.rb:29:in `block in show'
/home/ubuntu/house_seven/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/benchmarkable.rb:38:in `block in benchmark'
/home/ubuntu/house_seven/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.22/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/ubuntu/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'

Could be something to do with our CMS but not too sure what’s going on.

Anyone seen anything like this before??

Cheers

Sam


#2

Could you please try rebuilding with SSH enabled and checking if teaspoon/default page actually has the expected content in it?


#3

Thanks for the tip. Turned out that despite the Teaspoon documentation saying you can use the rake task or just the cli bundle exec teaspoon command, only the former was working, everything was fixed once we used rake.


#4