spec/spec_helper.rb in tabs-0.9.1 vs spec/spec_helper.rb in tabs-1.0.0
- old
+ new
@@ -1,9 +1,17 @@
require "rubygems"
require "tabs"
-require "fakeredis/rspec"
require "pry"
require "timecop"
RSpec.configure do |config|
config.mock_with :rspec
+
+ config.before(:each) do
+ Tabs::Resolution.reset_default_resolutions
+ Tabs::Storage.del_by_prefix("")
+ end
+
+ config.after(:each) do
+ Timecop.return
+ end
end