summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <rgerus@dpd.com.pl>2013-09-03 14:21:39 +0200
committerRobert Gerus <rgerus@dpd.com.pl>2013-09-03 14:21:39 +0200
commit7f4d12245256c5037d117d205c60a896ad657a92 (patch)
tree3f5ffadf5acd67889e7fc65c7a002ed611b50520
parentbae894c502bd8c1c81b392e11e1194e0cc3c5cb6 (diff)
downloadzvolcreator-master.tar.gz
zvolcreator-master.tar.bz2
zvolcreator-master.zip
i'm so dumb...HEADmaster
-rw-r--r--lib/zvoltronapi/talker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zvoltronapi/talker.rb b/lib/zvoltronapi/talker.rb
index daee4af..4fbc926 100644
--- a/lib/zvoltronapi/talker.rb
+++ b/lib/zvoltronapi/talker.rb
@@ -18,8 +18,8 @@ module ZVoltronApi
raise ArgumentError.new("Expectations not a hash") if not expectations.kind_of? Hash
raise ArgumentError.new("Empty expectations") if expectations.empty?
- @socket.send_message(message)
- response = @socket.read_message
+ self.send_message(message)
+ response = self.read_message
expectations.keys.each do |key|
raise ArgumentError.new("Expectation failed: #{key}") if not expectations[key].call(response[key])