Sha256: 0862757cac96df7b5ecaa34a9faf37ff0e5626ba5304408c84638d4db635fbae

Contents?: true

Size: 495 Bytes

Versions: 7

Compression:

Stored size: 495 Bytes

Contents

require 'rspec'
require 'paperclip-phantom_svg'
require 'active_record'
require 'fileutils'

def attachment(options={})
  Paperclip::Attachment.new(:phantom, DummyPhantom.new, options)
end

def fixture_file(filename)
  File.join(File.dirname(__FILE__), 'fixtures', filename)
end

def tmp_dir_path
  File.dirname(__FILE__) +  '/out'
end

def tmp_dir
  unless File.directory?(tmp_dir_path)
    FileUtils.mkdir_p(tmp_dir_path)
  end
  tmp_dir_path
end

def clear_tmp
  FileUtils.rm_rf(tmp_dir)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paperclip-phantom_svg-0.1.0 spec/spec_helper.rb
paperclip-phantom_svg-0.0.6 spec/spec_helper.rb
paperclip-phantom_svg-0.0.5 spec/spec_helper.rb
paperclip-phantom_svg-0.0.4 spec/spec_helper.rb
paperclip-phantom_svg-0.0.3 spec/spec_helper.rb
paperclip-phantom_svg-0.0.2 spec/spec_helper.rb
paperclip-phantom_svg-0.0.1 spec/spec_helper.rb