Sha256: 0756dcae8d16a683b2f4d50315d4c86bed32d97cff9c8571f8fdec6d1e2d4211
Contents?: true
Size: 1.46 KB
Versions: 12
Compression:
Stored size: 1.46 KB
Contents
require "spec_helper" describe ArchitectureJS do it 'should have a BASE_DIR constant' do ArchitectureJS::BASE_DIR.should_not be_nil end it 'should have a LIB_DIR constant' do ArchitectureJS::LIB_DIR.should_not be_nil end it 'should have a ROOT_DIR' do ArchitectureJS::ROOT_DIR.should_not be_nil end it 'should have the correct VERSION' do version = File.open("#{ArchitectureJS::BASE_DIR}/VERSION").read ArchitectureJS::VERSION.should === version end it 'should have a FRAMEWORKS constant' do ArchitectureJS::FRAMEWORKS.should_not be_nil end context "Instantiation with a config file" do before :each do FileUtils.mkdir("#{TMP_DIR}") FileUtils.cp "#{FIXTURES}/existing.architecture", "#{TMP_DIR}/myapp.architecture" suppress_output { @project = ArchitectureJS::create_project_from_config(TMP_DIR) } end after :each do FileUtils.rm_rf "#{TMP_DIR}" if File.exists? "#{TMP_DIR}" end it "should raise an error if there is no .architecture file" do FileUtils.rm_rf "#{TMP_DIR}/myapp.architecture" lambda { ArchitectureJS::create_project_from_config TMP_DIR }.should raise_error end it 'should set defaults from config file' do @project.config.should == { framework: 'none', src_dir: 'source', build_dir: 'dest', asset_root: '../', output: 'compressed', name: 'test', } end end # Instantiation with an existing config file end
Version data entries
12 entries across 12 versions & 1 rubygems