Skip to content
Browse files

Update deprecated rspect expect {} .should/.should_not check to .to/.…

…not_to
  • Loading branch information...
1 parent 65c373e commit 97013bd9c36ea6d8354beafe422b8989e952eb49 @mattconnolly committed Sep 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 spec/rapns/daemon/connection_spec.rb
  2. +1 −1 spec/rapns/notification_spec.rb
View
2 spec/rapns/daemon/connection_spec.rb
@@ -110,7 +110,7 @@
it "ignores IOError when the socket is already closed" do
tcp_socket.stub(:close).and_raise(IOError)
connection.connect
- expect { connection.close }.should_not raise_error(IOError)
+ expect { connection.close }.to_not raise_error(IOError)
end
end
View
2 spec/rapns/notification_spec.rb
@@ -43,7 +43,7 @@
describe Rapns::Notification, "when assigning the attributes for the device" do
it "should raise an ArgumentError if something other than a Hash is assigned" do
- expect { Rapns::Notification.new(:attributes_for_device => Array.new) }.should
+ expect { Rapns::Notification.new(:attributes_for_device => Array.new) }.to \
raise_error(ArgumentError, "attributes_for_device must be a Hash")
end

0 comments on commit 97013bd

Please sign in to comment.
Something went wrong with that request. Please try again.