Sha256: 5da723d0f9aa3f6f3bb6fdc8af3a1060f92f03966e59e2aeea9b0a851fbf19ce

Contents?: true

Size: 879 Bytes

Versions: 57

Compression:

Stored size: 879 Bytes

Contents

Given /^a safe project directory$/ do
  # step back to ROOT
  Dir.chdir ROOT_PATH
  tmp_name = "project.#{Process.pid}"
  @safe_dir = File.join(ROOT_PATH, 'tmp', tmp_name)
  FileUtils.rm_rf @safe_dir
  FileUtils.mkdir_p @safe_dir
  Dir.chdir @safe_dir

  generate_scaffold_structure
end

Given /^'(.*)' folder (exist|is deleted)$/ do |folder, condition|
  case condition
    when 'exist'
      raise "Folder #{folder} do not exist" unless File.exist?(folder) && File.directory?(folder)
    when 'is deleted'
      FileUtils.rm_rf folder
  end
end

Then /^'(.*)' folder is created$/ do |folder|
  File.directory?(folder).should be_true
end

Then /^'(.*)' folder do not exist$/ do |folder|
  File.directory?(folder).should_not be_true
end

Then /^no left over from '(.*)' remains in '(.*)'$/ do |name, folder|
  Dir.glob("#{folder}/**/#{name}/#{RUBY_VERSION}").should be_empty
end

Version data entries

57 entries across 57 versions & 5 rubygems

Version Path
rake-compiler-1.2.9 features/step_definitions/folders.rb
rake-compiler-1.2.8 features/step_definitions/folders.rb
rake-compiler-1.2.7 features/step_definitions/folders.rb
rake-compiler-1.2.6 features/step_definitions/folders.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/rake-compiler-1.2.5/features/step_definitions/folders.rb
rake-compiler-1.2.5 features/step_definitions/folders.rb
rake-compiler-1.2.4 features/step_definitions/folders.rb
rake-compiler-1.2.3 features/step_definitions/folders.rb
rake-compiler-1.2.2 features/step_definitions/folders.rb
rake-compiler-1.2.1 features/step_definitions/folders.rb
rake-compiler-1.2.0 features/step_definitions/folders.rb
rake-compiler-1.1.9 features/step_definitions/folders.rb
rake-compiler-1.1.8 features/step_definitions/folders.rb
rake-compiler-1.1.7 features/step_definitions/folders.rb
rake-compiler-1.1.6 features/step_definitions/folders.rb
rake-compiler-1.1.5 features/step_definitions/folders.rb
rake-compiler-1.1.4 features/step_definitions/folders.rb
rake-compiler-1.1.3 features/step_definitions/folders.rb
rake-compiler-1.1.2 features/step_definitions/folders.rb
rake-compiler-1.1.1 features/step_definitions/folders.rb