mirror of
https://github.com/wahyd4/emoji-cheat-sheet.com.git
synced 2026-08-23 20:16:18 +10:00
Appends the md5 digest value of files to their filenames. This is currently only affecting stylesheets and background images refered to in stylesheets.
22 lines
513 B
Ruby
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
|