Sha256: cf79dfc9cd0815dd01b2c8d25bf061ba179d27965dde840af0596538863d739d

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'

describe RailsPixrem::Processor do
  describe '#process' do
    let(:sample_css) { '#foo { padding: 2rem }' }
    let(:processor) { described_class.new }
    subject { processor.process(sample_css) }

    it { should include('padding: 32px;') }
    it { should include('padding: 2rem') }

    context 'when root value is passed' do
      let(:processor) { described_class.new(root_value: '20px') }

      it { should include('padding: 40px;') }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-pixrem-0.0.1 spec/rails-pixrem/processor_spec.rb