Sha256: 43e39958f24109b28384af9d8eca7f3f5cb2902eb88eecbeb827c9cb25de4d45
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
RSpec.describe Rambo::RamlModels::Api do let(:raml_file) { File.expand_path("../../../support/multiple_resources.raml", __FILE__) } let(:raml) { Raml::Parser.parse_file(raml_file) } subject { described_class.new(raml) } describe "#resources" do it "has the right number of resources" do expect(subject.resources.count).to eql 2 end it "returns an array of Resource objects" do all_are_resources = subject.resources.all? {|resource| resource.is_a?(Rambo::RamlModels::Resource) } expect(all_are_resources).to be true end end describe "#title" do it "returns the API title from the RAML doc" do expect(subject.title).to eql raml.title end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rambo_ruby-0.1.0 | spec/lib/raml_models/api_spec.rb |