Sha256: 157ca3c450639368baf65ce9d8cb4cb20034f0c26d43475a01b914172795a92d

Contents?: true

Size: 444 Bytes

Versions: 8

Compression:

Stored size: 444 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Sprite::ImageReader do
  before(:all) do
    @image_paths = {
      :good => "#{Sprite.root}/resources/images/topics/good-topic.gif",
      :mid => "#{Sprite.root}/resources/images/topics/mid-topic.gif"
    }
  end

  context "read" do
    it "should get a image from disk" do
      Sprite::ImageReader.read(@image_paths[:good]).class.name.should == 'Magick::Image'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sprite-0.3.0 spec/sprite/image_reader_spec.rb
sprite-0.2.7 spec/sprite/image_reader_spec.rb
sprite-0.2.6 spec/sprite/image_reader_spec.rb
sprite-0.2.5 spec/sprite/image_reader_spec.rb
sprite-0.2.4 spec/sprite/image_reader_spec.rb
sprite-0.2.2 spec/sprite/image_reader_spec.rb
sprite-0.2.1 spec/sprite/image_reader_spec.rb
sprite-0.2.0 spec/sprite/image_reader_spec.rb