Sha256: ffae4b6c807ee62173768b4696b42b7a693ae13a57ad1b8baef1a4e67e195cf1
Contents?: true
Size: 782 Bytes
Versions: 3
Compression:
Stored size: 782 Bytes
Contents
require 'spec_helper' describe "A local image" do it "should first be uploaded" do should.not.raise(Imgur::ImgurError) do @image = $imgur.upload_file "spec/spec_image.jpg" end end it "should be a hash" do @image.should.satisfy { |o| o.is_a?(Hash) } end it "should then be deleted" do $imgur.delete(@image["delete_hash"]).should.equal true end end describe "A remote image" do it "should first be uploaded" do should.not.raise(Imgur::ImgurError) do @image = $imgur.upload_from_url "http://media.fukung.net/images/20568/4e808393622518e616761bc4a4362f69.jpg" end end it "should be a hash" do @image.should.satisfy { |o| o.is_a?(Hash) } end it "should then be deleted" do $imgur.delete(@image["delete_hash"]).should.equal true end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
vanntastic-imgur-0.3.0 | spec/cycle_spec.rb |
vanntastic-imgur-0.2.0 | spec/cycle_spec.rb |
imgur-0.2.0 | spec/cycle_spec.rb |