Skip to content

Commit b41113e

Browse files
committed
Stub categories_badge in event partial spec
1 parent e26c5df commit b41113e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/views/better_together/events/_event.html.erb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
location: locatable
2020
)
2121

22+
view.define_singleton_method(:categories_badge) { |*_args| '' }
2223
allow(view).to receive(:render).with('better_together/shared/card', entity: event).and_yield
23-
allow(view).to receive(:categories_badge)
2424
allow(view).to receive(:event_time_range).and_call_original
2525
allow(view).to receive(:event_location).and_call_original
2626

0 commit comments

Comments
 (0)