Sha256: 4f487857917a8a548c4fd8a69e96aeaf215896a356ee7f8d23e35f07d016017b

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

module TestApp

  # No mattr_accessor before initialization ;(
  def self.path=(new_path)
    @path = new_path
  end

  def self.path
    @path
  end

  def self.prepare!
    self.path = File.expand_path("../../../tmp/dummy",  __FILE__)
    FileUtils.rm_rf path
    FileUtils.mkdir_p path
    FileUtils.cp_r File.expand_path("../../dummy//", __FILE__), File.expand_path(path+"/../")
    system("cd #{path} && bundle exec rake db:migrate > /dev/null")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
annotator-0.0.10 test/support/test_app.rb
annotator-0.0.9 test/support/test_app.rb
annotator-0.0.8.1 test/support/test_app.rb
annotator-0.0.8 test/support/test_app.rb
annotator-0.0.7 test/support/test_app.rb
annotator-0.0.6 test/support/test_app.rb
annotator-0.0.5 test/support/test_app.rb