Skip to content

Commit

Permalink
Add spec for #2246
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Apr 30, 2019
1 parent a87469b commit 588a93b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/uploader/serialization_spec.rb
@@ -0,0 +1,18 @@
require 'spec_helper'

describe CarrierWave::Uploader do
let(:uploader_class) do
Class.new(CarrierWave::Uploader::Base).tap do |c|
c.version :thumb
end
end
let(:uploader) { uploader_class.new }

after { FileUtils.rm_rf(public_path) }

describe '#serializable_hash' do
it "has string key for version value" do
expect(uploader.serializable_hash.keys).to include('thumb')
end
end
end

0 comments on commit 588a93b

Please sign in to comment.