diff --git a/lib/nitra/ext/cucumber.rb b/lib/nitra/ext/cucumber.rb index a78c2fc..d905636 100644 --- a/lib/nitra/ext/cucumber.rb +++ b/lib/nitra/ext/cucumber.rb @@ -5,7 +5,7 @@ module Cucumber # Cucumber's internals insist on using the new keyword # everywhere, we have to monkeypatch it out - CUCUMBER_3 = ::Cucumber::VERSION.chomp.split(/\./).first.to_i >= 3 + CUCUMBER_3 = ::Cucumber::VERSION.chomp.split(/\./).first.to_i == 3 if CUCUMBER_3 require 'cucumber/glue/registry_and_more'