Sha256: 6b44f9c7eedf68999de66922b3e7fb884b98c63cd58c2497c3de8d2a31d70d4a

Contents?: true

Size: 327 Bytes

Versions: 4

Compression:

Stored size: 327 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

4 entries across 4 versions & 1 rubygems

Version Path
alephant-renderer-3.0.0 spec/response_spec.rb
alephant-renderer-2.0.3 spec/response_spec.rb
alephant-renderer-2.0.2 spec/response_spec.rb
alephant-renderer-2.0.1 spec/response_spec.rb