# Teaspoon, Rails & CircleCI

**URL:** <https://discuss.circleci.com/t/teaspoon-rails-circleci/1016>\
**Category:** Build Environment\
**Tags:** rails\
**Created:** [December 9, 2015, 10:09am UTC](https://discuss.circleci.com/t/teaspoon-rails-circleci/1016 "2015-12-09T10:09:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samtgarson](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/samtgarson/32/660_2.png) [@samtgarson](https://discuss.circleci.com/u/samtgarson)\
**Post date:** [December 9, 2015, 10:09am UTC](https://discuss.circleci.com/t/teaspoon-rails-circleci/1016/1 "2015-12-09T10:09:05Z")

</div>

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.

```auto
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

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [December 9, 2015, 2:37pm UTC](https://discuss.circleci.com/t/teaspoon-rails-circleci/1016/2 "2015-12-09T14:37:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![samtgarson](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/samtgarson/32/660_2.png) [@samtgarson](https://discuss.circleci.com/u/samtgarson)\
**Post date:** [December 10, 2015, 12:35pm UTC](https://discuss.circleci.com/t/teaspoon-rails-circleci/1016/3 "2015-12-10T12:35:48Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/teaspoon-rails-circleci/1016/4 "2018-06-18T11:37:45Z")

</div>


