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

Version Path
rambo_ruby-0.2.3 spec/lib/rambo/raml_models/headers_spec.rb
rambo_ruby-0.2.2 spec/lib/rambo/raml_models/headers_spec.rb
rambo_ruby-0.2.1 spec/lib/rambo/raml_models/headers_spec.rb
rambo_ruby-0.2.0 spec/lib/rambo/raml_models/headers_spec.rb