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