spec/direct_spec.rb in chargify2-0.2.2 vs spec/direct_spec.rb in chargify2-0.2.4
- old
+ new
@@ -19,15 +19,15 @@
it "returns a SecureParameters instance with only the defaults set" do
sp = direct.secure_parameters
sp.should be_a(Direct::SecureParameters)
- sp.api_id.should_not be_blank
- sp.timestamp.should be_blank
- sp.nonce.should be_blank
- sp.data.should be_blank
- sp.signature.should_not be_blank
+ sp.api_id.should_not be_empty
+ sp.timestamp.should be_nil
+ sp.nonce.should be_nil
+ sp.data.should be_nil
+ sp.signature.should_not be_empty
end
end
it "sets the api_id and secret values on the SecureParameters instance from the client" do
sp = direct.secure_parameters
@@ -65,6 +65,6 @@
it "generates a new ResponseParameters instance given a hash of response params" do
direct.response_parameters({}).should be_a(Direct::ResponseParameters)
end
end
end
-end
\ No newline at end of file
+end