lib/wisepdf/configuration.rb in wisepdf-1.0.3 vs lib/wisepdf/configuration.rb in wisepdf-1.1.0
- old
+ new
@@ -30,10 +30,15 @@
def development?
(defined?(::Rails) && ::Rails.env == 'development') ||
(defined?(RAILS_ENV) && RAILS_ENV == 'development')
end
-
+
+ def test?
+ (defined?(::Rails) && ::Rails.env == 'test') ||
+ (defined?(RAILS_ENV) && RAILS_ENV == 'test')
+ end
+
def windows?
RbConfig::CONFIG['target_os'] == 'mingw32'
end
end
\ No newline at end of file