Sha256: 2fc453e288fc5ae23d8e3c9c3969c8ebf8253b41d7d14108560e7a10aaf0bf53

Contents?: true

Size: 840 Bytes

Versions: 1

Compression:

Stored size: 840 Bytes

Contents

Feature: Transforming JSX into Javascript when it is written in Coffeescript
  Background:
    Given a fixture app "app"
    Given a successfully built app at "app"

  Scenario: A JSX file written in coffeescript
    When I cd to "build"
    Then the following files should exist:
      | assets/javascripts/coffeescript.js |
    When I run `cat assets/javascripts/coffeescript.js`
    Then the stdout from "cat assets/javascripts/coffeescript.js" should contain exactly:
      """

      /** @jsx React.DOM */

      (function() {
        this.app.components.test = React.createClass({displayName: 'test',
          render: function() {
            return React.DOM.div(null, 
            TestComponent( {data:this.props.someData} )
          );
          }
        });

      }).call(this);

      """
    And the exit status should be 0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-react-0.10.0 spec/features/coffeescript.feature