From a2f77017f5dd6228762566a5c3e96824293f14b7 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 6 Dec 2016 12:07:17 +0100 Subject: [PATCH] Improved tests. --- spec/models/translation_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/models/translation_spec.rb b/spec/models/translation_spec.rb index 5b8cc77a0..2116ed34c 100644 --- a/spec/models/translation_spec.rb +++ b/spec/models/translation_spec.rb @@ -47,6 +47,7 @@ RSpec.describe Translation do # add custom changes translation = Translation.find_by(locale: locale, source: 'open') + expect(translation.class).to be(Translation) expect(translation.target).to eq('offen') expect(translation.target_initial).to eq('offen') translation.target = 'offen2'