Sha256: a57c301df9d9a964051f8e7b36dfd4fbfddbdb7e38a56b6209d88e7b3099cbf4

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
alephant-renderer-1.0.0 spec/response_spec.rb