Sha256: 1d20e5f89d73c8092caae9101d8160d5c6619a0dad08966448abc4ab80511654

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

Given(/^a feature file model based on "([^"]*)"$/) do |file_name|
  file_path = "#{@root_test_directory}/#{file_name}"
  File.open(file_path, 'w') { |file| file.puts "Feature:" } unless File.exists?(file_path)

  @model = CukeModeler::FeatureFile.new(file_path)
end

And(/^a feature file model based on that file$/) do |code_text|
  code_text = code_text.gsub('<file_path>', "'#{@file_path}'")

  eval(code_text)
end

And(/^the comment model of that feature file model$/) do |code_text|
  eval(code_text)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cuke_modeler-2.1.0 testing/cucumber/step_definitions/feature_file_steps.rb
cuke_modeler-2.0.0 testing/cucumber/step_definitions/feature_file_steps.rb
cuke_modeler-1.5.1 testing/cucumber/step_definitions/feature_file_steps.rb
cuke_modeler-1.5.0 testing/cucumber/step_definitions/feature_file_steps.rb
cuke_modeler-1.4.0 testing/cucumber/step_definitions/feature_file_steps.rb