lib/phantom_jasmine.rb in phantom_jasmine-0.0.6 vs lib/phantom_jasmine.rb in phantom_jasmine-0.0.7
- old
+ new
@@ -1,9 +1,13 @@
require 'phantom_jasmine/version'
+require 'jasmine/runners/phantom'
module PhantomJasmine
- class Railtie < ::Rails::Railtie
- rake_tasks do
- load 'tasks/phantom_jasmine.rake'
+ begin
+ class Railtie < ::Rails::Railtie
+ rake_tasks do
+ load 'tasks/phantom_jasmine.rake'
+ end
end
+ rescue LoadError, NameError
end
end