Closed defeated closed 8 years ago
Can you include some tests for this please? Thanks!
@50Wliu I wanted to, but it looks like theres no existing tests for Snippets in this package, only:
https://github.com/atom/language-ruby-on-rails/blob/master/spec/grammar-spec.coffee
Do you have a way to test for regressions?
@50Wliu OK, I looked at atom/language-ruby
package for some inspiration. I've added a new spec/snippets-spec.coffee
file and it is passing under apm test
. Let me know what you think!
Awesome, thanks for this!
Using Rails 5.0.0 beta, I noticed some snippets stopped working. This PR updates the following:
meta.rails.model
to alternatively look for the newApplicationRecord
conventionmeta.rails.mailer
to alternatively look for the newApplicationMailer
convention