On Fri, Aug 7, 2009 at 9:55 AM, Nick Hoffman<nick at deadorange.com>
wrote:> Hey guys. I''m building an app in Sinatra, and am having some
trouble
> writing a controller spec. It seems that #get isn''t known:
>
> NoMethodError in ''server shows the index page''
> undefined method `get'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb7a0c5b4>
>
> I''ve pasted the spec, spec_helper, etc here, in case it''s
of any help:
> http://pastie.org/574643
>
> Thanks!
> Nick
It turns out that the solution was more Sinatra-oriented. In case
others have this same question, I added
require ''rack/test''
to the beginning of my spec, and then added
include Rack::Test::Methods
to the beginning of the describe-block for the Sinatra app.
Cheers,
Nick