Use stub_any_instance in order to stub find results.
This is a much cleaner approach than before.
This commit is contained in:
parent
ea502ac9df
commit
a32333ba12
3 changed files with 88 additions and 117 deletions
1
Gemfile
1
Gemfile
|
@ -101,6 +101,7 @@ group :test do
|
|||
gem "rubocop"
|
||||
gem "timecop"
|
||||
gem "minitest", "~> 5.1", :platforms => [:ruby_19, :ruby_20]
|
||||
gem "minitest-stub_any_instance"
|
||||
end
|
||||
|
||||
# Needed in development as well so rake can see konacha tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue