We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14e7686 commit 5fc09dfCopy full SHA for 5fc09df
1 file changed
spec/vocabulary_spec.rb
@@ -260,6 +260,7 @@
260
property :Class
261
property :prop
262
property :prop2, label: "Test property label", comment: " Test property comment"
263
+ property :snake_case
264
end
265
266
@@ -272,6 +273,11 @@
272
273
.to eq (test_vocab.to_uri / 'aMissingMethod')
274
275
276
+ it "does not camelize if snake-case term found" do
277
+ expect(test_vocab.snake_case).to be_a(RDF::Vocabulary::Term)
278
+ expect(test_vocab.snake_case).to eq (test_vocab.to_uri / 'snake_case')
279
+ end
280
+
281
it "should respond to [] with properties that have been defined" do
282
expect(test_vocab[:prop]).to be_a(RDF::URI)
283
expect(test_vocab["prop2"]).to be_a(RDF::URI)
0 commit comments