Similar posts

Comments

makaroni4 commented about 1 year ago

E302c3320cd14b02cbe237b479d7f884?size=52

And even furthermore - one can use lambdas in filter_run_excluding:

RSpec.configure do |c|
  c.filter_run_excluding :ruby => lambda {|version|
    !(RUBY_VERSION.to_s =~ /^#{version.to_s}/)
  }
end

describe "something" do
  it "does something", :ruby => 1.8 do
    # ....
  end
  it "does something", :ruby => 1.9 do
    # ....
  end
end

If you want more: cool blog post

makaroni4
releu