Sha256: e12b5b2b0a4ca5c3009677c77f8799661332ec8ba6b95f71e7eff8db51490ad4
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
require File.expand_path 'test_helper', File.dirname(__FILE__) class TestGyazo < MiniTest::Test def setup @gyazo = Gyazo::Client.new ENV['GYAZO_TOKEN'] @imagefile = File.expand_path 'test.png', File.dirname(__FILE__) end def test_upload res = @gyazo.upload @imagefile assert res['permalink_url'].match /^https?:\/\/gyazo.com\/[a-z\d]{32}$/i end def test_list assert_equal @gyazo.list.class, Array end def test_delete res_up = @gyazo.upload @imagefile res_del = @gyazo.delete res_up['image_id'] assert_equal res_del['image_id'], res_up['image_id'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gyazo-2.0.0 | test/test_gyazo.rb |