Skip to content

Commit

Permalink
add witness_v1 output test
Browse files Browse the repository at this point in the history
  • Loading branch information
Atif Nazir committed Sep 26, 2021
1 parent 654271c commit b109bfe
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion spec/larger_transaction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,5 +347,25 @@

end

end
context "witness_v1_output" do

before(:each) do

@blockio = BlockIo::Client.new(:api_key => @api_key, :pin => @insecure_pin_valid)

end

it "succeeds_on_witness_v1_output" do

request = Oj.safe_load(File.open("spec/test-cases/json/prepare_transaction_response_witness_v1_output.json").read)
expected_response = Oj.safe_load(File.open("spec/test-cases/json/create_and_sign_transaction_response_witness_v1_output.json").read)

actual_response = @blockio.create_and_sign_transaction(request)

expect(actual_response).to eq(expected_response)

end

end

end

0 comments on commit b109bfe

Please sign in to comment.