Sha256: 0c970145c218fe959d29467d45503a15bb205582fc3d35af92a3094797788a04

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

RSpec.describe Aldous::View::Blank::HtmlView do
  subject(:view) {described_class.new(status, view_data, view_context)}

  let(:status) {nil}
  let(:view_data) {double("result")}
  let(:view_context) {double("view context")}

  it "inherits from Renderable" do
    expect(described_class.ancestors.include?(Aldous::Respondable::Renderable)).to be_truthy
  end

  it "implements the 'template' method" do
    expect{ view.template }.to_not raise_error
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 spec/aldous/view/blank/html_view_spec.rb
aldous-1.1.2 spec/aldous/view/blank/html_view_spec.rb
aldous-1.0.1 spec/aldous/view/blank/html_view_spec.rb
aldous-1.0.0 spec/aldous/view/blank/html_view_spec.rb