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

Pat Maddox pergesu at gmail.com
Wed Mar 14 15:40:51 EDT 2007

@settings.should allow_publish_ip("") fails with
undefined method `allow_publish_ip' for #<#<Class:0x2f8fd48>:0x2f5a968>

@settings.should_allow_publish_ip("") works fine

This is rspec 0.8.2.

http://rspec.rubyforge.org/documentation/expectations.html says that
matching arbitrary predicates is deprecated and to see
Spec::Matchers...however there's nothing really useful on that page
except for  matching resulting values.


More information about the rspec-users mailing list