Files
emoji-cheat-sheet.com/spec/optimizer/sprite_options_spec.rb
Joel Junström fa0c7f9635 [#46] Added cache busting mechanism
Appends the md5 digest value of files to their filenames.

This is currently only affecting stylesheets and background images
refered to in stylesheets.
2012-09-21 09:35:06 +02:00

22 lines
513 B
Ruby

require_relative '../spec_helper'
require_relative '../../lib/emoji_optimizer'
describe Emoji::Sprite::Options do
let(:options) { Emoji::Sprite::Options.new(tool: 'hammer', size: 'huge', nails: 5) }
it 'writes values' do
options[:size] = 'small'
options[:size].must_equal 'small'
end
it 'returns values' do
options[:tool].must_equal 'hammer'
end
describe 'to_s' do
it 'renders an argument list' do
options.to_s.must_equal '-tool hammer -size huge -nails 5'
end
end
end