Skip to content

Commit 6ab848a

Browse files
committed
Remove unused each helper in spec_helper
1 parent f2bf04c commit 6ab848a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spec/spec_helper.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,9 @@
4040
end
4141
end
4242

43-
config.before :each do |example|
44-
if time_args = example.metadata[:system_time]
45-
case time_args
46-
when Array then allow(Time).to receive(:now).and_return Time.local(*time_args)
47-
when Time then allow(Time).to receive(:now).and_return time_args
48-
end
49-
end
50-
end
51-
5243
config.around :each, expect_warnings: true do |example|
5344
capture_warnings do
5445
example.run
5546
end
5647
end
57-
5848
end

0 commit comments

Comments
 (0)