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