mhs / sms-spec

A Ruby library for testing SMS Messages using RSpec and Cucumber.
19 stars 40 forks source link

Error - uninitialized constant Twilio #6

Open brycesenz opened 11 years ago

brycesenz commented 11 years ago

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 commented 10 years ago

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

timmyc commented 10 years ago

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 commented 9 years ago

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.