Skip to content

Commit 121b989

Browse files
committed
Fix regression in #ms_entries specs
The specs should now be more resilient by using regular expressions instead of index names.
1 parent de4cf44 commit 121b989

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/instance_methods_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
)
1414

1515
expect(book.ms_entries).to contain_exactly(
16-
a_hash_including("index_uid" => safe_index_uid('SecuredBook')),
17-
a_hash_including("index_uid" => safe_index_uid('BookAuthor')),
18-
a_hash_including("index_uid" => safe_index_uid('Book')),
16+
a_hash_including("index_uid" => /SecuredBook/),
17+
a_hash_including("index_uid" => /BookAuthor/),
18+
a_hash_including("index_uid" => /Book/),
1919
)
2020
end
2121

@@ -27,10 +27,10 @@
2727
)
2828

2929
expect(book.ms_entries).to contain_exactly(
30-
a_hash_including("index_uid" => safe_index_uid('SecuredBook')),
31-
a_hash_including("index_uid" => safe_index_uid('BookAuthor')),
30+
a_hash_including("index_uid" => /SecuredBook/),
31+
a_hash_including("index_uid" => /BookAuthor/),
3232
# also includes book's id as if it was a public book
33-
a_hash_including("index_uid" => safe_index_uid('Book')),
33+
a_hash_including("index_uid" => /Book/),
3434
)
3535
end
3636

0 commit comments

Comments
 (0)