Permalink
Browse files

Better detection of executing platform in features.

  • Loading branch information...
1 parent 1159f43 commit 670ede208227e5e64e8cfa6397cf82ce5bb37dfd @luislavena luislavena committed Dec 4, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −1 features/step_definitions/cross_compilation.rb
  2. +0 −1 features/support/env.rb
View
2 features/step_definitions/cross_compilation.rb
@@ -1,6 +1,6 @@
# Naive way of looking into platforms, please include others like FreeBSD?
Given %r{^I'm running a POSIX operating system$} do
- unless RUBY_PLATFORM =~ /linux|darwin/ then
+ unless RbConfig::CONFIG['host_os'] =~ /linux|darwin/ then
raise Cucumber::Pending.new("You need a POSIX operating system, no cheating ;-)")
end
end
View
1 features/support/env.rb
@@ -1,4 +1,3 @@
-require 'rubygems'
require 'cucumber'
require 'spec'
require 'fileutils'

0 comments on commit 670ede2

Please sign in to comment.