RSpec.describe Rambo::RamlModels::Headers do let(:raml) { Raml::Parser.parse_file(raml_file) } let(:raml_file) { File.expand_path("../../../support/post_with_request_headers.raml", __FILE__) } let(:headers) { raml.resources.first.methods.first.headers } subject { described_class.new(headers) } describe "#pretty" do let(:pretty) do "{\n\t\"Content-Type\" => \"application/json\"\n}" end it "makes it pretty" do expect(subject.pretty).to eql pretty end end end