[rspec-users] undefined method `flunk' for #<Spec::Example::ExampleGroup::Subclass_1:0x0000000516bd40>

Jonathan Cran jcran at 0x0e.org
Tue Mar 8 20:08:06 EST 2011


I'm running into an issue using ONLY rspec version 1.3.3 (no rails /
rspec-rails with this project) where i'm hitting the following error:

My code looks like this:

describe Win32Meterpreter

    before :all
        helper_method
    end

    def helper_method
                ## If a session came back, try to interact with it.
                if @session
                        @session.load_stdapi
                else
                        flunk "Couldn't get a session!"
                end
    end

end

And the error:

    undefined method `flunk' for
#<Spec::Example::ExampleGroup::Subclass_1:0x0000000516bd40>

I believe this method is contained within the rspec-rails classes and
i'm not using those in this case. Is there an alternative to using flunk
- Suggestions?


jcran

-- 
Jonathan Cran
jcran at 0x0e.org
515.890.0070



More information about the rspec-users mailing list