mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 09:17:20 -04:00
Merge pull request #1834 from Growstuff/awesomecode-lint-ruby-rspec-returnfromstub-28915
Auto corrected by following Lint Ruby RSpec/ReturnFromStub
This commit is contained in:
@@ -11,7 +11,7 @@ require 'rails_helper'
|
||||
# end
|
||||
# end
|
||||
RSpec.describe ButtonsHelper, type: :helper do
|
||||
before { allow(self).to receive(:can?) { true } }
|
||||
before { allow(self).to receive(:can?).and_return(true) }
|
||||
|
||||
let(:garden) { FactoryBot.create :garden }
|
||||
let(:planting) { FactoryBot.create :planting }
|
||||
|
||||
Reference in New Issue
Block a user