Sha256: 08e8832a84bc4a7d1d52e8aa02d747bc5a8f70292449e0c2a0533b514071884d
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'spec_helper' describe RenderingEngine::Provider do let(:file_repo) { double('RenderingEngine::FileRepo') } let(:file_path) { 'login/form.html' } let(:content) { double('ContentObject') } let(:data) { double('data') } let(:custom_helper) { double('custom_helper') } let(:opts) { { data: data, custom_helper: custom_helper } } subject { described_class.new(file_repo) } it '#get' do expect(RenderingEngine::Content).to receive(:new) .with(file_repo, file_path, opts) .and_return(content) expect(subject.get(file_path, opts)).to be content end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rendering_engine-0.2.0 | spec/rendering_engine/provider_spec.rb |