rspectacular 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,14 @@
1
- RSpec.configure do |config|
2
- config.before(:all, :time_mock => true) do
3
- require 'timecop'
1
+ begin
2
+ require 'timecop'
4
3
 
5
- Timecop.freeze(Time.utc(2012, 7, 26, 18, 0, 0))
6
- end
4
+ RSpec.configure do |config|
5
+ config.around(:each, :time_mock => true) do |example|
6
+ Timecop.freeze(Time.utc(2012, 7, 26, 18, 0, 0))
7
+
8
+ example.run
7
9
 
8
- config.after(:each, :time_mock => true) do
9
- Timecop.return
10
+ Timecop.return
11
+ end
10
12
  end
13
+ rescue LoadError
11
14
  end
@@ -1,3 +1,3 @@
1
1
  module RSpectacular
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: