Sha256: a28b2754da5b315c74b55dfd8e787de2884cd56ac2f49ce7e7dd5aabb6e9982c
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
RSpec.describe Rambo::RamlModels::Headers do let(:raml) { Raml::Parser.parse_file(raml_file) } let(:raml_file) { File.join(SPEC_DIR_ROOT, "support/post_with_request_headers.raml") } 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
Version data entries
4 entries across 4 versions & 1 rubygems