[rspec-users] What's the new syntax for predicates?

aslak hellesoy aslak.hellesoy at gmail.com
Wed Mar 14 16:14:46 EDT 2007


On 3/14/07, Pat Maddox <pergesu at gmail.com> wrote:
> On 3/14/07, Pat Maddox <pergesu at gmail.com> wrote:
> > @settings.should allow_publish_ip("127.0.0.1") fails with
> > undefined method `allow_publish_ip' for #<#<Class:0x2f8fd48>:0x2f5a968>
> >
> > @settings.should_allow_publish_ip("127.0.0.1") works fine
>
> @settings.should_be allow_publish_ip("127.0.0.1") is it

Unless I'm mistaken (David?) that's deprecated and will disappear. I
believe the way forward is:

@settings.should be_allow_publish_ip("127.0.0.1")

Aslak

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


More information about the rspec-users mailing list