Skip to content

Commit

Permalink
Experimental check tests
Browse files Browse the repository at this point in the history
  • Loading branch information
18bitmood committed Sep 24, 2021
1 parent 18e2bf4 commit bb33b65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/endpoints/ipfs_endpoints_spec.rb
Expand Up @@ -35,6 +35,9 @@
ipfs_path = ''
context 'when calls add_a_file method' do
it 'returns status 200' do
puts "\n" * 3
puts Dir.pwd
puts "\n" * 3
response = blockfrost_ipfs.add_a_file('./README.md')
expect(response[:status]).to eq(200)
ipfs_path = response[:body][:ipfs_hash]
Expand All @@ -48,8 +51,11 @@
end
context 'when calls get_localstorage_pinned_object method' do
it 'returns status 200 and response body ipfs hash is eq path from add_a_file' do
sleep 3 # To make sure that pin_object method finished work
sleep 5 # To make sure that pin_object method finished work
response = blockfrost_ipfs.get_localstorage_pinned_object(ipfs_path)
puts "\n" * 3
puts response
puts "\n" * 3
expect(response[:status]).to eq(200)
expect(response[:body][:ipfs_hash]).to eq(ipfs_path)
end
Expand Down

0 comments on commit bb33b65

Please sign in to comment.