Sha256: 0561e81b1ad2ef67eab2853cc3299238773e294d8d16a7c6edaed0fabcfdd8b2

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

require 'spec_helper'


describe "The Dawn engine for padrino applications" do 
  before(:all) do 
    @engine = 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

11 entries across 11 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.6.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.5.2 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.5.1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.5.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.4.2 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.4.1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.4.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.3.5 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.3.1 spec/lib/dawn/codesake_padrino_engine_disabled.rb
dawnscanner-1.3.0 spec/lib/dawn/codesake_padrino_engine_disabled.rb