spec/spec_helper.rb in sitehub-0.5.0.alpha8 vs spec/spec_helper.rb in sitehub-0.5.0.alpha10
- old
+ new
@@ -20,12 +20,17 @@
require 'lib/sitehub'
RSpec.configure do |config|
include Rack::Test::Methods
+
config.before do
Timecop.freeze
WebMock.enable!
+ end
+
+ config.after do
+ Timecop.return
end
config.after(:suite) do
WebMock.disable!
end