Browse files

Not so naive way of mark a step as pending.

  • Loading branch information...
1 parent b6df669 commit 638bd7dc24a7baf4d3bca1df0ccdc469ffe39a4d @luislavena luislavena committed Dec 2, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 features/step_definitions/cross_compilation.rb
View
5 features/step_definitions/cross_compilation.rb
@@ -1,6 +1,7 @@
# Naive way of looking into platforms, please include others like FreeBSD?
-if RUBY_PLATFORM =~ /linux|darwin/
- Given %r{^I'm running a POSIX operating system$} do
+Given %r{^I'm running a POSIX operating system$} do
+ unless RUBY_PLATFORM =~ /linux|darwin/ then
+ raise Cucumber::Pending.new("You need a POSIX operating system, no cheating ;-)")
end
end

0 comments on commit 638bd7d

Please sign in to comment.