Skip some tests in the RSpec by releu You can skip group of tests with config! Add this to spec_helper.rb config.filter_run_excluding :remote => true #ruby #rspec
makaroni4 commented about 1 year ago 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
Comments
makaroni4 commented about 1 year ago
And even furthermore - one can use lambdas in filter_run_excluding:
If you want more: cool blog post