Sha256: e1287a20561341f1c1013cab190e1488376bfed707d69a0d13f816a9058b9033
Contents?: true
Size: 739 Bytes
Versions: 16
Compression:
Stored size: 739 Bytes
Contents
require 'spec_helper' CLASS = Rails3::Assist::File::Special class AppDir include CLASS end describe Rails3::Assist::File::Application do # use_helper :directories before do Rails3::Assist::Directory.rails_root = fixtures_dir end before :each do file_name = CLASS.application_file FileUtils.cp file_name, file_name + '.bak' end after :each do file_name = CLASS.application_file FileUtils.mv file_name + '.bak', file_name end describe '#insert_application_config' do it "should return the #{name} file path" do CLASS.insert_application_config 'hello = 2' content = CLASS.read_application_file content.should match /Rails::Application\n\s+config\.hello = 2/ end end end
Version data entries
16 entries across 16 versions & 1 rubygems