Closed imderek closed 8 years ago
One more note: when browsing to /teaspoon
, the failure is slightly different:
expect is not defined
ReferenceError: expect is not defined
There's some lines in the spec helper to enable the mocha matchers. It has a few options, so we don't specify enable one by default. The getting started article is written for jasmine, but it looks like you're using mocha fwiw.
Jeremy Jackson
On Mar 10, 2016, at 7:39 AM, Derek Johnson notifications@github.com wrote:
One more note: when viewing /teaspoon, the error is slightly different:
expect is not defined ReferenceError: expect is not defined — Reply to this email directly or view it on GitHub.
@jejacks0n Oh, I definitely intended to use Jasmine. I wasn't paying complete attention when I copied the "use this version for Rails 5" line, which switches to Mocha:
Developer Note
We've added experimental Rails 5 support. If you're looking to use Teaspoon with Rails 5, please try out the rails_5 branch.
gem "teaspoon-mocha", github: "modeset/teaspoon", branch: "rails_5"
Changed gem to teaspoon-jasmine
, all good now. Thanks.
You may want to run the generator again.
On Mar 10, 2016, at 8:10 AM, Derek Johnson notifications@github.com wrote:
@jejacks0n Oh, I definitely intended to use Jasmine. I was paying complete attention when I copied the "use this version for Rails 5" line, which switches to Mocha:
Developer Note
We've added experimental Rails 5 support. If you're looking to use Teaspoon with Rails 5, please try out the rails_5 branch.
gem "teaspoon-mocha", github: "modeset/teaspoon", branch: "rails_5"
Changed gem to teaspoon-jasmine, all good now. Thanks.
— Reply to this email directly or view it on GitHub.
Yup, did. Thanks again, @jejacks0n.
Followed the Quick Start, but get an unexpected error when running
rake teaspoon
:My Gemfile in a nutshell:
Spec looks like: