Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec NameError: uninitialized constant CoffeeScript::Engines #31

Closed
dre3k opened this issue Mar 14, 2011 · 2 comments
Closed

RSpec NameError: uninitialized constant CoffeeScript::Engines #31

dre3k opened this issue Mar 14, 2011 · 2 comments

Comments

@dre3k
Copy link

dre3k commented Mar 14, 2011

Hi, Darcy

I have very simple rails app:
# Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem 'sqlite3'
gem 'therubyracer', :require => false
gem 'barista'
gem 'rspec'
gem 'rspec-rails'
gem 'webrat'
gem 'capybara'

Set up for rspec-rails and barista:
$ rails generate rspec:install
$ rails generate barista:install

Generate User scaffold and migrate db:
$ rails generate scaffold user name:string
$ rake db:migrate

I have app/coffeescripts/application.coffee with just one line:
# app/coffeescripts/application.coffee
echo "hello"

When I'm trying to run
$ rspec spec/requests/users_spec.rb
I get NameError: uninitialized constant CoffeeScript::Engines
F

Failures:

  1) Users GET /users works! (now write some real specs)
     Failure/Error: get users_path
     NameError:
       uninitialized constant CoffeeScript::Engines
     # <internal:prelude>:10:in `synchronize'
     # ./spec/requests/users_spec.rb:7:in `block (3 levels) in <top (required)>'

Finished in 0.31144 seconds
1 example, 1 failure

Could you please suggest what to do to make rpsec work with barista.

Appreciate your help.

@dre3k
Copy link
Author

dre3k commented Mar 15, 2011

A lot of apologies. It's totally my fault.
I was playing around with barista specifications, and manually changed coffee-script dependency to version to 2.2.0.

@Sutto
Copy link
Owner

Sutto commented Mar 16, 2011

Heh, no problem - I'll work shortly on updating barista to work with the newest version given it supports a lot more engines.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants