From 09aceb5e26bb89b9153449c4c5a0bad718e909fd Mon Sep 17 00:00:00 2001 From: Jenny Duckett Date: Wed, 30 Apr 2014 17:43:15 +0100 Subject: [PATCH] Add failing test for mapping scope interactions --- spec/models/mapping_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/models/mapping_spec.rb b/spec/models/mapping_spec.rb index 39b5b64b3..31a8b42b9 100644 --- a/spec/models/mapping_spec.rb +++ b/spec/models/mapping_spec.rb @@ -235,6 +235,14 @@ ['/path-3', 40 * 3 + 30 * 3] ] end + + it 'plays nicely with tagging' do + m = Mapping.first + m.tag_list = ['foo'] + m.save! + + expect { @mappings.tagged_with('foo').any? }.to_not raise_error + end end end