spec/rbnacl/boxes/curve25519xsalsa20poly1305_spec.rb in rbnacl-3.1.0 vs spec/rbnacl/boxes/curve25519xsalsa20poly1305_spec.rb in rbnacl-3.1.1

- old
+ new

@@ -7,14 +7,14 @@ let(:alice_key) { RbNaCl::PublicKey.new(alicepk) } let(:bob_key) { RbNaCl::PrivateKey.new(bobsk) } context "new" do it "accepts strings" do - expect { RbNaCl::Box.new(alicepk, bobsk) }.to_not raise_error(Exception) + expect { RbNaCl::Box.new(alicepk, bobsk) }.to_not raise_error end it "accepts KeyPairs" do - expect { RbNaCl::Box.new(alice_key, bob_key) }.to_not raise_error(Exception) + expect { RbNaCl::Box.new(alice_key, bob_key) }.to_not raise_error end it "raises TypeError on a nil public key" do expect { RbNaCl::Box.new(nil, bobsk) }.to raise_error(TypeError) end