lib/cucumber/platform.rb in aslakhellesoy-cucumber-0.1.10 vs lib/cucumber/platform.rb in aslakhellesoy-cucumber-0.1.11
- old
+ new
@@ -4,9 +4,10 @@
$CUCUMBER_JRUBY = defined?(JRUBY_VERSION)
$CUCUMBER_IRONRUBY = Config::CONFIG['sitedir'] =~ /IronRuby/
$CUCUMBER_WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/
$CUCUMBER_WINDOWS_MRI = $CUCUMBER_WINDOWS && !$CUCUMBER_JRUBY && !$CUCUMBER_IRONRUBY
+$CUCUMBER_RAILS = defined?(Rails)
if $CUCUMBER_IRONRUBY
ENV['GEM_PATH'] ||= "C:/ruby/lib/ruby/gems/1.8"
end