Sha256: 507574917a45c53f6d99ea6973776a819ff0bfbf2aa196a5742f319703fbd185
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
RSpec.describe Rambo::RamlModels::Response do let(:raml_file) { File.expand_path("../../../support/foobar.raml", __FILE__) } let(:raml) { Raml::Parser.parse_file(raml_file) } let(:response) { raml.resources.first.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rambo_ruby-0.1.0 | spec/lib/raml_models/response_spec.rb |