1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
require 'diff-lcs'
Around "@skip-when-diff-lcs-1.4" do |scenario, block|
if Diff::LCS::VERSION >= '1.4'
skip_this_scenario "Skipping scenario #{scenario.name} on `diff-lcs` v#{Diff::LCS::VERSION}"
else
block.call
end
end
Around "@skip-when-diff-lcs-1.4.3" do |scenario, block|
if Diff::LCS::VERSION =~ /1\.4\.3/
skip_this_scenario "Skipping scenario #{scenario.name} on `diff-lcs` v#{Diff::LCS::VERSION}"
else
block.call
end
end
Around "@skip-when-diff-lcs-1.3" do |scenario, block|
if Diff::LCS::VERSION < '1.4'
skip_this_scenario "Skipping scenario #{scenario.name} on `diff-lcs` v#{Diff::LCS::VERSION}"
else
block.call
end
end
|