Skip to content

Commit 14c04e4

Browse files
committed
test: fix view spec
1 parent 15e7d7b commit 14c04e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/views/better_together/uploads/index.html.erb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
RSpec.describe 'better_together/uploads/index.html.erb', type: :view do
66
it 'renders total storage usage' do
7-
allow(view).to receive(:resource_class).and_return(BetterTogether::Upload)
7+
view.define_singleton_method(:resource_class) { BetterTogether::Upload }
88
assign(:uploads, [])
99
assign(:total_size, 3.megabytes)
1010

0 commit comments

Comments
 (0)