From 4db143c2e01289fa988e25e815926083ea09ddb6 Mon Sep 17 00:00:00 2001 From: Josh Dzielak Date: Fri, 16 Dec 2011 21:45:58 -0800 Subject: [PATCH] Create the Rails Engine only if it's a Rails application. --- lib/jasmine-spec-extras.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/jasmine-spec-extras.rb b/lib/jasmine-spec-extras.rb index e69de29..0700665 100644 --- a/lib/jasmine-spec-extras.rb +++ b/lib/jasmine-spec-extras.rb @@ -0,0 +1,8 @@ +begin + require 'rails' + module JasmineSpecExtras + class Engine < Rails::Engine + end + end +rescue LoadError => e +end