rspectacular 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
|
|
1
|
-
|
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
|
-
|
31
|
+
rescue LoadError
|
30
32
|
if defined? RSpec::Rails
|
31
33
|
RSpec.configure do |config|
|
32
34
|
config.use_transactional_fixtures = true
|
data/lib/rspectacular/version.rb
CHANGED