Sha256: 2b5b08b593d240418633acaea31e7f0aa99cb357306553b857c92fe619c9d052

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

require 'spec_helper'

describe Alephant::Renderer::Response do
  subject { described_class.new content }
  let(:content) { '<h1>foo</h1>' }

  describe '#to_json' do
    let(:expected_structure) { { 'content' => content } }

    specify do
      expect(::JSON.parse(subject.to_json)).to eq expected_structure
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alephant-renderer-3.2.0 spec/response_spec.rb
alephant-renderer-3.1.0 spec/response_spec.rb