urbanairship / ruby-library

A Ruby wrapper for the Urban Airship API.
Other
200 stars 118 forks source link

How do you test this? #22

Closed alternegro closed 11 years ago

alternegro commented 11 years ago

Hello, Running rspec throws uninitialized constant errors. Is there an obvious step i'm missing? Thanks

schoblaska commented 11 years ago

You can run specs with either rake or rake spec. The rake task loads the spec helper, which in turn loads the library itself and will fix the uninitialized constant errors you're seeing.

However, it is a good idea to require spec_helper from the specs anyways. I just checked in a change to add these, so if you do a git pull you should also be able to run specs with rspec spec/.