Sha256: ecc536538e69888fb5b428339ede3c1eca27439c1ce2356c654ec113dae309ff
Contents?: true
Size: 650 Bytes
Versions: 9
Compression:
Stored size: 650 Bytes
Contents
RSpec.describe Rambo::RamlModels::Response do let(:raml_file) { File.join(SPEC_DIR_ROOT, "support/foobar.raml") } let(:raml) { Raml::Parser.parse_file(raml_file) } let(:response) { raml.resources.first.http_methods.first.responses.first } subject { described_class.new(response) } describe "#status_code" do it "returns the response status code" do expect(subject.status_code).to eql response.code end end describe "bodies" do it "creates an array of Body objects" do all_are_bodies = subject.bodies.all? {|body| body.is_a?(Rambo::RamlModels::Body) } expect(all_are_bodies).to be true end end end
Version data entries
9 entries across 9 versions & 1 rubygems