Sha256: c8afc754e5acf3d2d6af9bf70047c8cec92c262e965b754684569ad7155b2d6f

Contents?: true

Size: 406 Bytes

Versions: 21

Compression:

Stored size: 406 Bytes

Contents

# encoding: utf-8

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

describe CarrierWave::Uploader do

  before do
    @uploader_class = Class.new(CarrierWave::Uploader::Base)
    @uploader = @uploader_class.new
  end
  
  after do
    FileUtils.rm_rf(public_path)
  end

  describe '#root' do
    it "should default to the config option" do
      @uploader.root.should == public_path
    end
  end

end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
thorsson_carrierwave-0.4.12 spec/uploader/paths_spec.rb
thorsson_carrierwave-0.4.11 spec/uploader/paths_spec.rb
thorsson_carrierwave-0.4.10 spec/uploader/paths_spec.rb
thorsson_carrierwave-0.4.9 spec/uploader/paths_spec.rb
thorsson_carrierwave-0.4.8 spec/uploader/paths_spec.rb
thorsson_carrierwave-0.4.6 spec/uploader/paths_spec.rb
thorsson_carrierwave-0.4.5 spec/uploader/paths_spec.rb
carrierwave-rails3-0.4.5 spec/uploader/paths_spec.rb
samlown-carrierwave-0.4.5 spec/uploader/paths_spec.rb
dsturnbull-carrierwave-0.4.9 spec/uploader/paths_spec.rb
dsturnbull-carrierwave-0.4.8 spec/uploader/paths_spec.rb
dsturnbull-carrierwave-0.4.7 spec/uploader/paths_spec.rb
carrierwave-0.4.5 spec/uploader/paths_spec.rb
dsturnbull-carrierwave-0.4.6 spec/uploader/paths_spec.rb
dsturnbull-carrierwave-0.4.5 spec/uploader/paths_spec.rb
carrierwave-0.4.4 spec/uploader/paths_spec.rb
durran-carrierwave-0.4.3 spec/uploader/paths_spec.rb
carrierwave-0.4.3 spec/uploader/paths_spec.rb
carrierwave-0.4.2 spec/uploader/paths_spec.rb
carrierwave-0.4.1 spec/uploader/paths_spec.rb