Sha256: eb50ca0ea58ab9773c17de7a2ff3c611f4b9dc04842c5c3d7fbf8f5c22029fba

Contents?: true

Size: 494 Bytes

Versions: 12

Compression:

Stored size: 494 Bytes

Contents

require 'fileutils'

module SpecFilesSetup
  def setup_env!
    FileUtils.mkdir_p('my_course_handouts/headings')
    lessons_array_with_incorrect.each do |file|
      File.new("my_course_handouts/#{file}", 'w+').close
    end

    headings_array_with_incorrect.each do |file|
      File.new("my_course_handouts/headings/#{file}", 'w+').close
    end
  end

  def clear_env!
    FileUtils.remove_entry('my_course_handouts')
    FileUtils.remove_entry('test.md', true)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lessons_indexer-1.0.3 spec/support/spec_files_setup.rb
lessons_indexer-1.0.2.1 spec/support/spec_files_setup.rb
lessons_indexer-1.0.0 spec/support/spec_files_setup.rb
lessons_indexer-0.3.1 spec/support/spec_files_setup.rb
lessons_indexer-0.3.0 spec/support/spec_files_setup.rb
lessons_indexer-0.2.3 spec/support/spec_files_setup.rb
lessons_indexer-0.2.2 spec/support/spec_files_setup.rb
lessons_indexer-0.2.1 spec/support/spec_files_setup.rb
lessons_indexer-0.2.0 spec/support/spec_files_setup.rb
lessons_indexer-0.1.2 spec/support/spec_files_setup.rb
lessons_indexer-0.1.1 spec/support/spec_files_setup.rb
lessons_indexer-0.1.0 spec/support/spec_files_setup.rb