Sha256: 81edb5dfe6724084737707f9a11e9ad31d8015266ad3e9259d759c50247203e8
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' require 'rail/request' require 'rail/precompiler' RSpec.describe Rail::Precompiler do let(:pipeline) { double } let(:storage) { double } subject do precompiler = described_class.new(pipeline, storage) allow(precompiler).to receive(:report) precompiler end describe '#process' do it 'works' do expect(pipeline).to \ receive(:process).and_return([200, {}, ['Hello, world!']]) expect(storage).to \ receive(:write).with('index.html', ['Hello, world!']) subject.process(['index.html']) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rail-0.1.1 | spec/lib/rail/precompiler_spec.rb |
rail-0.1.0 | spec/lib/rail/precompiler_spec.rb |
rail-0.0.8 | spec/lib/rail/precompiler_spec.rb |