Sha256: dfaf19befb97236f572a17b155d326a7cf0a90c9a0947f946eb8100d3095d473

Contents?: true

Size: 605 Bytes

Versions: 10

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'

describe Eyeballs::AppGenerator do  
  describe "generate a simple app" do
    before(:all) do
      create_test_root
      FileUtils.mkdir(test_root + '/public')
      FileUtils.cd(test_root)
      Eyeballs::AppGenerator.start(['test'])
    end
    let(:app_dir) { file('public', 'javascripts', 'app') }
    
    it "should create the test root" do
      File.exists?(test_root).should be_true
    end
    
    it "should create the test app in the public javascripts directory" do
      app_dir.should exist
    end
    
    after(:all) do
      remove_test_root
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eyeballs-0.5.17 spec/rack_app_detector_spec.rb
eyeballs-0.5.16 spec/rack_app_detector_spec.rb
eyeballs-0.5.15 spec/rack_app_detector_spec.rb
eyeballs-0.5.14 spec/rack_app_detector_spec.rb
eyeballs-0.5.13.2 spec/rack_app_detector_spec.rb
eyeballs-0.5.13.1 spec/rack_app_detector_spec.rb
eyeballs-0.5.13 spec/rack_app_detector_spec.rb
eyeballs-0.5.12.1 spec/rack_app_detector_spec.rb
eyeballs-0.5.12 spec/rack_app_detector_spec.rb
eyeballs-0.5.11 spec/rack_app_detector_spec.rb