Sha256: 782279e287696bc451f331ab1b837fae08cc5b98ec87b7fd165c9c20dd35ee20

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

Feature: create a template for a new zendesk app

  Scenario: create a template for a new zendesk app by running 'zat new' command
    Given an app directory "tmp/aruba" exists
    When I run "zat new" command with the following details:
      | author name  | John Citizen      |
      | author email | john@example.com  |
      | app name     | John Test App     |
      | app dir      | tmp/aruba         |

    Then the app file "tmp/aruba/manifest.json" is created with:
    """
{
  "name": "John Test App",
  "author": {
    "name": "John Citizen",
    "email": "john@example.com"
  },
  "defaultLocale": "en",
  "private": true,
  "location": "ticket_sidebar",
  "frameworkVersion": "0.5"
}
"""
    And the app file "tmp/aruba/app.js" is created with:
    """
(function() {

  return {
    events: {
      'app.activated':'doSomething'
    },

    doSomething: function() {
    }
  };

}());
"""
    And the app file "tmp/aruba/templates/layout.hdbs" is created with:
    """
<header>
  <span class="logo"/>
  <h3>{{setting "name"}}</h3>
</header>
<section data-main/>
<footer>
  <a href="mailto:{{author.email}}">
    {{author.name}}
  </a>
</footer>
"""
    And the app file "tmp/aruba/translations/en.json" is created with:
    """
{
  "app": {
    "description":  "Play the famous zen tunes in your help desk.",
    "name":         "Buddha Machine"
  }
}
"""

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zendesk_apps_tools-1.2.2 features/new.feature
zendesk_apps_tools-1.2.1 features/new.feature
zendesk_apps_tools-1.1.3 features/new.feature
zendesk_apps_tools-1.1.2 features/new.feature