spec/features/translation_scope_spec.rb in blacklight-spotlight-2.0.2 vs spec/features/translation_scope_spec.rb in blacklight-spotlight-2.1.0
- old
+ new
@@ -7,9 +7,10 @@
before do
login_as exhibit_curator
FactoryBot.create(:translation, exhibit: exhibit)
FactoryBot.create(:translation, exhibit: other_exhibit)
end
+
it 'default scope of Translation should be limited to current exhibit' do
visit spotlight.exhibit_path(exhibit)
expect(Translation.all.count).to eq 1
end
end