Sha256: ee85863d3df7cb5208077ff68cefd239cd6963206b76983f0d85bdf41417b757

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

Feature: Generate skellington

  Scenario: generate app file
    When I successfully run `skellington generate dummy_app`
    Then a directory named "dummy_app/lib/" should exist
    And a file named "dummy_app/lib/dummy_app.rb" should exist
    And the file "dummy_app/lib/dummy_app.rb" should contain:
    """
    require 'sinatra/base'

    class DummyApp < Sinatra::Base
      get '/' do
        @content = '<h1>Hello from DummyApp</h1>'
        @title = 'DummyApp'
        erb :index, layout: :default
      end

      # start the server if ruby file executed directly
      run! if app_file == $0
    end
    """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
skellington-0.4.0 features/app.feature
skellington-0.3.6 features/app.feature