We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e7d7b commit 14c04e4Copy full SHA for 14c04e4
spec/views/better_together/uploads/index.html.erb_spec.rb
@@ -4,7 +4,7 @@
4
5
RSpec.describe 'better_together/uploads/index.html.erb', type: :view do
6
it 'renders total storage usage' do
7
- allow(view).to receive(:resource_class).and_return(BetterTogether::Upload)
+ view.define_singleton_method(:resource_class) { BetterTogether::Upload }
8
assign(:uploads, [])
9
assign(:total_size, 3.megabytes)
10
0 commit comments