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

Error - uninitialized constant Twilio #6

Open
brycesenz opened this issue Mar 2, 2013 · 3 comments
Open

Error - uninitialized constant Twilio #6

brycesenz opened this issue Mar 2, 2013 · 3 comments

Comments

@brycesenz
Copy link

I have twilio-ruby installed, and just tried to install this gem. I added the lines requiring "sms_spec" to my spec_helper.rb file, but whenever I try to run my specs, I get the following error:

uninitialized constant Twilio

I'm running Rails 3.2.11, version 3.9.0 of twilio-ruby, and version 0.1.6 of this gem. Am I missing something?

@jasnow
Copy link

jasnow commented Nov 29, 2013

To reproduce this, run this: rspec spec/matchers_spec.rb

@timmyc
Copy link

timmyc commented Dec 26, 2013

I had this issue also and oddly enough I just changed the order of 'twilio-ruby' inclusion within my gemfile. I had it below my group :test block and moved it above and it fixed the issue.

Oddly enough manually requiring twilio-ruby within my spec_helper file did not fix it.

@noreaster
Copy link

I also had this issue, and changing the position of 'twilio-ruby' from below the test block to above it fixed it. I'm not sure bundler is supposed to work this way, but at least now it doesn't crash on startup.

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

4 participants