Created
March 5, 2014 07:32
-
-
Save amclain/9362756 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "send_array attempts an array conversion if the object is not an array" do | |
data = Object.new.tap {|obj| | |
obj.instance_eval { def to_a; [1,2,3,4]; end } | |
} | |
push_sock.send_array data | |
pull_sock.recv_array.should eq data.to_a.map {|i| i.to_s } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment