Sounds like a bug. Can you report it to the rspec-mocks issue tracker? A reproducible failing example would be really great as it would help us track this down and fix the bug.
On Mar 28, 8:44 pm, Perry Smith <[email protected]> wrote: > If I have: > > let(:local_execute_cmvc_command) { double('local_execute_cmvc_command') } > > it "should request the specified file and report back the contents if no > error" do > local_execute_cmvc_command.should_receive(:new).once do |options| > options.should include(cmd: 'File', extract: src_file, version: > version, release: release) > OpenStruct.new(stdout: sample_file, rc: 0) > end > > rep = GetSrcFile.new(typical_options) > rep.path.should eq(src_file) > rep.version.should eq(version) > rep.release.should eq(release) > rep.lines.should eq(sample_file) > rep.error.should eq(nil) > end > > and the options.should test fails (3rd line), instead of the proper message I > get: > > private method `pretty_print' called for > #<RSpec::Mocks::ErrorGenerator:0x007fe3d03afc30> > > I have these gems (plus others of course) > > * rspec (2.13.0) > * rspec-core (2.13.0) > * rspec-expectations (2.13.0) > * rspec-mocks (2.13.0) > * rspec-rails (2.13.0) > > Do I need to add a gem or is this a pilot error or bug? Note that I'm doing > the should inside the test double. > > Thank you, > Perry -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
