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

Pat Maddox pergesu at gmail.com
Wed Mar 14 15:54:49 EDT 2007


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


More information about the rspec-users mailing list