spec/cli_spec.rb in veritrans-2.0.0 vs spec/cli_spec.rb in veritrans-2.0.2

- old
+ new

@@ -13,12 +13,10 @@ silence_stream(STDOUT) do Veritrans::CLI.test_webhook(["http://example.com"]) end data = ActiveSupport::JSON.decode(@request.body) - data.class.should == String - data = ActiveSupport::JSON.decode(data) data["status_code"].should == "200" data["status_message"].should == "Veritrans payment notification" data["payment_type"].should == "credit_card" @@ -72,11 +70,9 @@ Veritrans::CLI.test_webhook(["http://example.com"]) end end data = ActiveSupport::JSON.decode(@request.body) - data.class.should == String - data = ActiveSupport::JSON.decode(data) data["status_code"].should == "200" data["status_message"].should == "Veritrans payment notification" data["payment_type"].should == "credit_card" data["transaction_status"].should == "settlement" \ No newline at end of file