Skip to content

Commit

Permalink
test SchemaObjectBase .inspect class method on a schema class set to …
Browse files Browse the repository at this point in the history
…a constant to get its name
  • Loading branch information
notEthan committed May 3, 2018
1 parent 893240b commit dac99d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/schema_object_base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
assert_equal(%q(Scorpio::SchemaClasses["https://scorpio/foo#"]), subject.class.inspect)
end
end
it 'is the constant name plus the id for a class assigned to a constant' do
assert_equal(%q(Scorpio::OpenAPI::V2::Operation (http://swagger.io/v2/schema.json#/definitions/operation)), Scorpio::OpenAPI::V2::Operation.inspect)
end
end
describe 'class name' do
let(:schema_content) { {'id' => 'https://scorpio/SchemaObjectBaseTest'} }
Expand Down

0 comments on commit dac99d5

Please sign in to comment.