Sha256: 793d9ba5ae5ccfcb5a1eddf789d4da413dc083ceed7aca19c5c7805acf8c44cd
Contents?: true
Size: 747 Bytes
Versions: 3
Compression:
Stored size: 747 Bytes
Contents
require 'spec_helper' describe Calamum::DefinitionParser do before do definition = YAML.load(File.open("spec/data/my_definition.yml")) @api_definition = Calamum::DefinitionParser.new(definition) @api_definition.load_requests end specify{@api_definition.get_resources_names.should == ['user', 'group']} specify{@api_definition.get_resource_uris('user').size.should == 3} specify{@api_definition.resources['user'].size.should == 3} specify{@api_definition.resources['user'][0].errors.should be_empty} specify{@api_definition.resources['user'][0].action.should == 'GET'} specify{@api_definition.resources['user'][0].uri.should == '/users'} specify{@api_definition.resources['user'][1].headers.should_not be_empty} end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
calamum-1.0.2 | spec/definition_parser_spec.rb |
calamum-1.0.1 | spec/definition_parser_spec.rb |
calamum-1.0.0 | spec/definition_parser_spec.rb |