zmbush / coffeelint-ruby

This adds some simple bindings to ruby to enable use of coffeelint
MIT License
32 stars 23 forks source link

Coffeelint::run_test_suite indicates success when tests are failing #14

Closed tindron closed 10 years ago

tindron commented 10 years ago

I noticed my coffeelint rake task wasn't failing anymore when tests were failing. It looks like Coffeelint::display_test_results is always returning true now.

results = Coffeelint.lint "hey: ->\n  @bort()\n", :missing_fat_arrows => { :level => "error" }
Coffeelint.display_test_results 'Such failure', results
=> true
zmbush commented 10 years ago

Just pushed a new gem (v0.2.7) that should fix this issue. (Had an if statement backwards)