Hi all,

I was wonder whether something like the following is possible in RSpec?

RSpec.configure do |c|
  c.filter_examples : pending_for_some_reason => lambda {|example|
    pending "This example is failing due to upgrade of x" do
       example.call
    end
  }
end

it "should succeed, but probably doesn't yet", :pending_for_some_reason =>
true do
   raise "fail"
end

I'm currently working on a library that has many failing specs due to an
upgrade of a dependency. It would be nice if a could just flag examples that
are failing due to that change without having to copy paste the pending
block.

Cheers,
Jeroen
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to