translated_sentence_spec.rb revision 20d7141b5fbf4ea48eeadae9d6a9a88465ac6b8b
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Boschrequire 'spec_helper'
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainendescribe TranslatedSentence do
c1684fd2affe6159e99bc6de0fd387ce802f0ca6Timo Sirainen
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen context 'when parsing the CarsAreAudis ontology with symbol mappings', :needs_hets do
7c681809344b880aae61e99b6ab74ae19945ff9eAki Tuomi let(:repository) { create :repository }
74f436ccd2887395bd61ab6f43ce70b7b85bf2c5Timo Sirainen let(:version) { add_fixture_file(repository, 'dol/double_import_blendoid.dol') }
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen let(:ontology) { version.ontology }
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen context 'translated sentences should be created correctly' do
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen it 'should contain a translated sentence for AudiA4 is Audi' do
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen expect(TranslatedSentence.where(translated_text: 'Class: AudiA4 SubClassOf: Car')).not_to be_nil
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen end
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen end
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen end
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainenend
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen