You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nevo Hed (JIRA)" <ji...@apache.org> on 2014/01/09 16:42:50 UTC

[jira] [Commented] (THRIFT-2184) undefined method rspec_verify for Thrift::MemoryBufferTransport

    [ https://issues.apache.org/jira/browse/THRIFT-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866717#comment-13866717 ] 

Nevo Hed commented on THRIFT-2184:
----------------------------------

I had the same issue you described

I think it may have to do with versions of rspec/rspec-mock ... I had multiple rspec gems installed
(2.14.x 2.10.x & 1.3.x installed), I removed the 2.14.x and it seems to be doing better.

This is not a solution as more of a workaround, I'm not versed enough in the gem ecosystem to propose a fix


> undefined method rspec_verify for Thrift::MemoryBufferTransport
> ---------------------------------------------------------------
>
>                 Key: THRIFT-2184
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2184
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.9.1
>            Reporter: Paul Brannan
>
> When running 'make install', I get the following errors that do not occur when just running 'make':
> {noformat}
>   1) BinaryProtocolAccelerated it should behave like a binary protocol should write a byte
>      Failure/Error: @trans.rspec_verify
>      NoMethodError:
>        undefined method `rspec_verify' for #<Thrift::MemoryBufferTransport:0x000000034e86c8>
>      Shared Example Group: "a binary protocol" called from ./spec/binary_protocol_accelerated_spec.rb:28
>      # ./spec/binary_protocol_spec_shared.rb:112:in `block (2 levels) in <top (required)>'
>   2) BinaryProtocol it should behave like a binary protocol should write a byte
>      Failure/Error: @trans.rspec_verify
>      NoMethodError:
>        undefined method `rspec_verify' for #<Thrift::MemoryBufferTransport:0x000000034509e0>
>      Shared Example Group: "a binary protocol" called from ./spec/binary_protocol_spec.rb:25
>      # ./spec/binary_protocol_spec_shared.rb:112:in `block (2 levels) in <top (required)>'
> {noformat}
> I commented out the call to #rspec_verify, but I do not know what the correct fix is.
> I also get numerous (related) warnings about mock being deprecated:
> {noformat}
> DEPRECATION: mock is deprecated. Use double instead. Called from /home/pbrannan/git/thrift/lib/rb/spec/unix_socket_spec.rb:93:in `block (3 levels) in <top (required)>'.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)