Sha256: 7b545bee47a5f18e9d0f2642c293a8312355605247ccb8f55f5bd4510328a4ce
Contents?: true
Size: 897 Bytes
Versions: 2
Compression:
Stored size: 897 Bytes
Contents
Feature: Generate skellington Scenario: generate app at a non-local path When I successfully run `skellington generate subdir/some_app` Then a directory named "subdir/some_app/lib/" should exist And a file named "subdir/some_app/lib/some_app.rb" should exist And the file "subdir/some_app/lib/some_app.rb" should contain: """ require 'sinatra/base' class SomeApp < Sinatra::Base get '/' do @content = '<h1>Hello from SomeApp</h1>' @title = 'SomeApp' erb :index, layout: :default end # start the server if ruby file executed directly run! if app_file == $0 end """ And a file named "subdir/some_app/config.ru" should exist And the file "subdir/some_app/config.ru" should contain: """ require 'rubygems' require File.join(File.dirname(__FILE__), 'lib/some_app.rb') run SomeApp """
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skellington-0.4.0 | features/non-local-path.feature |
skellington-0.3.6 | features/non-local-path.feature |