Sha256: a1a6a8bbbb5bf465e8f9a521f6287b508963747e64887e227b4c2dc706f0d629

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

RSpec.describe Aldous::View::Blank::JsonView 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/json_view_spec.rb
aldous-1.1.2 spec/aldous/view/blank/json_view_spec.rb
aldous-1.0.1 spec/aldous/view/blank/json_view_spec.rb
aldous-1.0.0 spec/aldous/view/blank/json_view_spec.rb