Sha256: b37daed39db2460b2dfde7339ddb7e3bd4c9a8fde34909645eca32d39bbf0cdc
Contents?: true
Size: 1.07 KB
Versions: 17
Compression:
Stored size: 1.07 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 expect(@engine.name).to eq("padrino") end it "has a valid target" do expect(@engine.target).to eq("./spec/support/hello_world_padrino") expect(@engine.target_is_dir?).to be_truthy end it "detects the applications declared in config/apps.rb" do expect(@engine).to respond_to(:detect_apps) expect(@engine.apps).not_to be_nil expect(@engine.apps.count).to eq(3) end it "creates a valid pool of Sinatra engines" do expect(@engine.apps[0].mount_point).to eq("/") expect(@engine.apps[1].mount_point).to eq("/log") expect(@engine.apps[2].mount_point).to eq("/dispatcher") end it "has a good Gemfile.lock" do expect(@engine.has_gemfile_lock?).to be_truthy end it "detects padrino v0.11.2" do expect(@engine.mvc_version).to eq("0.11.2") end # describe "analyzing the main application" do # end end
Version data entries
17 entries across 17 versions & 1 rubygems