Permalink
Browse files

Disables certain scenarios on Rubinius

* I cannot get Rubinius to raise a warning for some reason, even outside
  specs
  • Loading branch information...
1 parent ce13677 commit 93a8a658618b77c10b4d2b17ff9a2d9ef00464da @alindeman alindeman committed Jul 7, 2013
Showing with 6 additions and 0 deletions.
  1. +2 −0 features/command_line/warnings_option.feature
  2. +4 −0 features/support/rubinius.rb
@@ -2,6 +2,7 @@ Feature: run with warnings enabled
You can use the `--warnings` option to run specs with warnings enabled
+ @unsupported-on-rbx
Scenario:
Given a file named "example_spec.rb" with:
"""ruby
@@ -14,6 +15,7 @@ Feature: run with warnings enabled
When I run `rspec --warnings example_spec.rb`
Then the output should contain "warning"
+ @unsupported-on-rbx
Scenario:
Given a file named "example_spec.rb" with:
"""ruby
@@ -1,2 +1,6 @@
# Required until https://github.com/rubinius/rubinius/issues/2430 is resolved
ENV['RBXOPT'] = "#{ENV["RBXOPT"]} -Xcompiler.no_rbc"
+
+Around "@unsupported-on-rbx" do |scenario, block|
+ block.call unless defined?(Rubinius)
+end

0 comments on commit 93a8a65

Please sign in to comment.