Sha256: 4850a1c9dd2c7356c0b174248f42de46c0707d5e52510eb214b7cf712ba5325c

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

describe "Image h9Guq" do

	before do
		@image_stats = $imgur.image_stats "h9Guq"
	end
	
	it "should be hash of statistics" do
		@image_stats.should.satisfy { |h| h.is_a?(Hash) }
	end

	it "should be 387,469 bytes in size" do
		@image_stats["size"].to_i.should.equal 387469
	end
	
	it "should be type image/png" do
		@image_stats["type"].should.equal "image\/png"
	end
	
end
		

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
vanntastic-imgur-0.3.0 spec/image_stats_spec.rb
vanntastic-imgur-0.2.0 spec/image_stats_spec.rb
imgur-0.2.0 spec/image_stats_spec.rb