testing/cucumber/step_definitions/setup_steps.rb in cql-1.4.0 vs testing/cucumber/step_definitions/setup_steps.rb in cql-1.4.1

- old
+ new

@@ -1,18 +1,6 @@ Given(/^a directory "([^"]*)"$/) do |partial_directory_path| - directory_path = partial_directory_path.include?('path/to') ? process_path(partial_directory_path) : "#{@default_file_directory}/#{partial_directory_path}" - - FileUtils.mkpath(directory_path) unless File.exists?(directory_path) -end - -And(/^a file "([^"]*)":$/) do |partial_file_path, file_text| - File.open("#{@default_file_directory}/#{partial_file_path}", 'w') { |file| file.write file_text } -end - -And(/^a repository is made from "([^"]*)"$/) do |partial_path| - repo_path = "#{@default_file_directory}/#{partial_path}" - - @repository = CQL::Repository.new(repo_path) + create_path(partial_directory_path) end Given(/^the models provided by CukeModeler$/) do @available_model_classes = Array.new.tap do |classes| CukeModeler.constants.each do |constant|