Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 45cdcbb6cd
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.631 kb
require 'rubygems'
require 'bundler/setup'
require 'rspec'
require 'carrierwave'
require 'carrierwave/sequel'
def file_path( *paths )
File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', *paths))
end
def public_path( *paths )
File.expand_path(File.join(File.dirname(__FILE__), 'public', *paths))
end
CarrierWave.root = public_path
module CarrierWave
module Test
module MockFiles
def stub_file(filename, mime_type=nil, fake_name=nil)
f = File.open(file_path(filename))
return f
end
end
end
end
RSpec.configure do |config|
config.include CarrierWave::Test::MockFiles
end
Jump to Line
Something went wrong with that request. Please try again.