Sha256: 224ef18de06111d45a92a58a1985a16771c62d6a30bae797959093e8c35c3fd3

Contents?: true

Size: 528 Bytes

Versions: 13

Compression:

Stored size: 528 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'httpimagestore/pathname'

describe Pathname do
	describe "#original_image" do
		it "returns path with tid" do
			Pathname.new("test/file/path.jpg").original_image(123).to_s.should == "test/file/123/path.jpg"
		end
	end

	describe "#thumbnail_image" do
		it "returns path with tid and thumbnail class name in file name" do
			Pathname.new("test/file/path.jpg").thumbnail_image(123, 'small').to_s.should == "test/file/123/path-small.jpg"
		end
	end
end
 

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
httpimagestore-0.2.0 spec/pathname_spec.rb
httpimagestore-0.1.1 spec/pathname_spec.rb
httpimagestore-0.1.0 spec/pathname_spec.rb
httpimagestore-0.0.10 spec/pathname_spec.rb
httpimagestore-0.0.9 spec/pathname_spec.rb
httpimagestore-0.0.8 spec/pathname_spec.rb
httpimagestore-0.0.7 spec/pathname_spec.rb
httpimagestore-0.0.6 spec/pathname_spec.rb
httpimagestore-0.0.5 spec/pathname_spec.rb
httpimagestore-0.0.4 spec/pathname_spec.rb
httpimagestore-0.0.3 spec/pathname_spec.rb
httpimagestore-0.0.2 spec/pathname_spec.rb
httpimagestore-0.0.1 spec/pathname_spec.rb