kimroen / ember-cli-coffeescript

Adds precompilation of CoffeeScript files and all the basic generation types to the ember generate command.
MIT License
72 stars 49 forks source link

[WIP] Blueprint tests #106

Closed kimroen closed 7 years ago

kimroen commented 8 years ago

Fixes #101

kimroen commented 8 years ago

Added some tests where one of them should fail just to check that everything is all right, but then they both passed.

trabus commented 8 years ago

You're using the wrong property to check the file, it should be contains, not contents:

files (array): Array of files to assert, represented by objects with file, exists, contains, or doesNotContain properties. Example object:

files: [
  {
    file: 'path-to-file.js', 
    contains: ['file contents to compare'], 
    doesNotContain: ['file contents that shouldn\'t be present'], 
    exists: true //default true
  }
]```
kimroen commented 7 years ago

I came back to take a look at this today, but so much had happened with the blueprint test helpers that I figured it would be better to start over. I did that over here: #129

Thanks for the help!