<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Sep 11, 2007, at 2:37 PM, Geoffrey Wiseman wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">On 9/5/07, <B class="gmail_sendername">David Chelimsky</B> <<A href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</A>> wrote:<DIV><SPAN class="gmail_quote"></SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> irb(main):001:0> require 'rubygems'<BR>=> true<BR>irb(main):002:0> require 'spec'<BR>=> true<BR>irb(main):003:0> include Spec::Matchers<BR>=> Object<BR>irb(main):004:0> 5.should == 5<BR> => nil<BR>irb(main):005:0> 5.should be < 4<BR>Spec::Expectations::ExpectationNotMetError: expected < 4, got 5<BR></BLOCKQUOTE></DIV><BR>$ script/console<BR>Loading development environment.<BR>>> require 'rubygems' <BR>=> []<BR>>> require 'spec'<BR>NameError: undefined method `failure_message' for class `Spec::Matchers::Have'<BR> from /work/workspace/ng/vendor/plugins/rspec_on_rails/lib/spec/matchers/have.rb:4:in `alias_method' <BR> from /work/workspace/ng/vendor/plugins/rspec_on_rails/lib/spec/matchers/have.rb:4<BR> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<BR><BR clear="all"></BLOCKQUOTE><BR></DIV>David - I haven't seen a follow up to this post. Could you guide me on the right direction?<BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I see that in irb I can include Spec::Mocks::SpecMethods, which allows me mock 'something'. How would I get access to mock_model?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Scott</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>