How to use cucumber_gem_version method of Project.Cucumber Package

Best Rr_ruby code snippet using Project.Cucumber.cucumber_gem_version

cucumber.rb

Source:cucumber.rb Github

copy

Full Screen

...3 def configure4 super5 gem_dependencies << gem_dependency(6 :name => 'cucumber-rails',7 :version => cucumber_gem_version,8 :require => false9 )10 if rails_version == 211 gem_dependencies << gem_dependency(12 :name => 'capybara',13 :version => '~> 0.4.0'14 )15 # 1.5.0 is only compatible with >= 1.9.216 gem_dependencies << gem_dependency(17 :name => 'nokogiri',18 :version => '~> 1.4.0'19 )20 end21 gem_dependencies << gem_dependency(22 :name => 'database_cleaner'23 )24 end25 def generate_skeleton26 super27 if rails_version == 228 run_command_within! ruby_command('script/generate cucumber --capybara --backtrace')29 else30 run_command_within! ruby_command('rails generate cucumber:install')31 end32 end33 def test_runner_command34 'cucumber'35 end36 private37 def cucumber_gem_version38 if rails_version == 239 '~> 0.3.2'40 else41 '~> 1.3.1'42 end43 end44 end45end

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Rr_ruby automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful