Sha256: 79fc5f086e18ad25f2424aa2ba37d8d7f6236408d687048692308097dcacb257

Contents?: true

Size: 1.04 KB

Versions: 22

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'


describe "The Codesake::Dawn engine for padrino applications" do 
  before(:all) do 
    @engine = Codesake::Dawn::Padrino.new('./spec/support/hello_world_padrino')
  end
    

  it "has a proper name" do
    @engine.name.should   ==    "padrino"
  end

  it "has a valid target" do
    @engine.target.should ==   "./spec/support/hello_world_padrino"
    @engine.target_is_dir?.should  be_true
  end

  it "detects the applications declared in config/apps.rb" do
    @engine.should  respond_to(:detect_apps)
    @engine.apps.should_not     be_nil
    @engine.apps.count.should   == 3
  end

  it "creates a valid pool of Sinatra engines" do
    @engine.apps[0].mount_point.should == "/"
    @engine.apps[1].mount_point.should == "/log"
    @engine.apps[2].mount_point.should == "/dispatcher"
  end


  it "has a good Gemfile.lock" do
    @engine.has_gemfile_lock?.should   be_true
  end

  it "detects padrino v0.11.2" do
    @engine.mvc_version.should   == "0.11.2"
  end

  
  # describe "analyzing the main application" do
  # end
  
  
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
dawnscanner-1.2.99 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.2.99 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.2.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.1.3 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.1.2 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.1.1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.1.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.1.0.rc2 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.1.0.rc1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.6 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.5 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.4 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.3 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.2 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.0.rc2 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-1.0.0.rc1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
codesake-dawn-0.85 spec/lib/dawn/codesake_padrino_engine_spec.rb
codesake-dawn-0.80.0 spec/lib/dawn/codesake_padrino_engine_spec.rb