[rspec-users] Custom matcher, use other helpers and matchers from rspec-rails

David Chelimsky dchelimsky at gmail.com
Sun Apr 12 22:05:18 EDT 2009


On Sun, Apr 12, 2009 at 10:35 PM, Brandon Olivares
<programmer2188 at gmail.com> wrote:
>
>
>> -----Original Message-----
>> From: rspec-users-bounces at rubyforge.org [mailto:rspec-users-
>> bounces at rubyforge.org] On Behalf Of David Chelimsky
>> Sent: Sunday, April 12, 2009 9:27 PM
>> To: rspec-users
>> Subject: Re: [rspec-users] Custom matcher, use other helpers and
>> matchers from rspec-rails
>>
>> There's not really a single mechanism for that at this point because
>> rspec-rails isn't really designed to be the basis for extensions of
>> itself.
>>
>> Can you be more specific about which methods are not being found? Are
>> they all from rspec-rails? Are some from rails directly?
>>
>
> I can't remember everything, but first was route_for, so I included
> Spec::Rails::Example::RoutingHelpers. Then assert_recognizes, and I can't
> remember exactly what I included for that at first. Then clean_backtrace,
> and I found the module for that, then build_message.
>
> Then I gave up, and was trying to find a parent module that would just
> include all of that, because it doesn't make sense I'd have to include so
> many different things to make it work.

Yeah - unfortunately, you're kinda stuck with that for the moment cuz
there is no parent module. :(

>
> Brandon
>
>> >
>> > Brandon
>> >
>> > _______________________________________________
>> > rspec-users mailing list
>> > rspec-users at rubyforge.org
>> > http://rubyforge.org/mailman/listinfo/rspec-users
>> >
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list