rspectacular 0.4.0 → 0.5.0

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,4 +1,6 @@
1
- if defined? DatabaseCleaner
1
+ begin
2
+ require 'database_cleaner'
3
+
2
4
  RSpec.configure do |config|
3
5
  config.before(:suite) do
4
6
  DatabaseCleaner.clean_with(:truncation)
@@ -26,7 +28,7 @@ if defined? DatabaseCleaner
26
28
  config.use_transactional_fixtures = false
27
29
  end
28
30
  end
29
- else
31
+ rescue LoadError
30
32
  if defined? RSpec::Rails
31
33
  RSpec.configure do |config|
32
34
  config.use_transactional_fixtures = true
@@ -1,3 +1,3 @@
1
1
  module RSpectacular
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
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.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: