Sha256: 063e1103296639d18ee385d4e4f82b2afd13c640b4da4a5c47eea89a4bd4e026
Contents?: true
Size: 738 Bytes
Versions: 9
Compression:
Stored size: 738 Bytes
Contents
require 'spec_helper' CLASS = RailsAssist::File::Special class AppDir include CLASS end describe RailsAssist::File::Application do # use_helper :directories before do RailsAssist::Directory.rails_root = fixtures_dir end before :each do file_name = CLASS.application_filepath FileUtils.cp file_name, file_name + '.bak' end after :each do file_name = CLASS.application_filepath 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
9 entries across 9 versions & 1 rubygems