[rspec-users] Caveman Questions

Geoffrey Wiseman geoffrey.wiseman at gmail.com
Tue Sep 11 14:37:38 EDT 2007


On 9/5/07, David Chelimsky <dchelimsky at gmail.com> wrote:
>
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'spec'
> => true
> irb(main):003:0> include Spec::Matchers
> => Object
> irb(main):004:0> 5.should == 5
> => nil
> irb(main):005:0> 5.should be < 4
> Spec::Expectations::ExpectationNotMetError: expected < 4, got 5
>

$ script/console
Loading development environment.
>> require 'rubygems'
=> []
>> require 'spec'
NameError: undefined method `failure_message' for class
`Spec::Matchers::Have'
        from
/work/workspace/ng/vendor/plugins/rspec_on_rails/lib/spec/matchers/have.rb:4:in
`alias_method'
        from
/work/workspace/ng/vendor/plugins/rspec_on_rails/lib/spec/matchers/have.rb:4
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'


-- 
Geoffrey Wiseman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070911/10992e51/attachment-0001.html 


More information about the rspec-users mailing list