Sha256: 0300e8070a20266e7d2ad5534eb65653eca23965455c5bdc69ee4c9a241c03f1
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
require 'rspec/core' require 'rails3_artifactor' require 'rails3_artifactor/rspec' require 'rails-app-spec' RSpec.configure do |config| config.before do Rails3::Assist::Directory.rails_root = temp_dir('tmp_rails') end config.after do remove_temp_dir 'tmp_rails' end end def project_dir File.dirname(__FILE__) + '/..' end def temp_dir name File.join(project_dir, name) end def make_temp_dir name FileUtils.mkdir_p temp_dir(name) temp_dir(name) end def remove_temp_dir name FileUtils.rm_rf temp_dir(name) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-app-spec-0.3.2 | spec/spec_helper.rb |
rails-app-spec-0.3.1 | spec/spec_helper.rb |