Sha256: 4417ee0404357976cad05703a51ecbe0cd43ff0832b69f7b2082c0cc05a747d0

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

require "spec_helper"

describe RenderingEngine::Provider do
  let(:base_path)     { 'root/contract/files' }
  let(:relative_path) { 'login/form.html' }
  let(:file_path)     { File.join(base_path, relative_path) }
  let(:content)       { double('ContentObject') }
  subject { described_class.new(base_path) }

  it '#get' do
    RenderingEngine::Content.should_receive(:new)
      .with(file_path)
      .and_return(content)
    subject.get(relative_path).should be content
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rendering_engine-0.0.1 spec/rendering_engine/provider_spec.rb