spec/rake/funnel/tasks/timing_spec.rb in rake-funnel-0.21.2 vs spec/rake/funnel/tasks/timing_spec.rb in rake-funnel-0.22.0
- old
+ new
@@ -2,17 +2,17 @@
include Rake::DSL
before do
Rake.application = nil
Rake::Task.clear
-
- # rubocop:disable RSpec/ExpectInHook
- expect(define_tasks).to be
- expect(subject).to be
- # rubocop:enable RSpec/ExpectInHook
end
let(:define_tasks) { task :task }
+
+ subject! do
+ define_tasks
+ described_class.new
+ end
after do
subject.reset!
end