Shopify/batman — pull request #203 by sidonath (2011-11-02 11:43:23+00:00)
Title: Accept ruby methods with ?/! at the end

Hi all,

I've ran into an issue while integrating Batman.js into an existing Rails app. I needed a method ending with ? to be bound to a view, but keypath_rx didn't want to recognize it. A patch that solves that with accompanied test is attached.

Note:

The following test started faling in console after adding the tests to to the `encoders_test.coffee` (7f687a26, contains only test code). It seems to be completely unrelated, but I thought it may be worth mentioning:

[Error][Batman.View loop rendering: it should render consecutive loops]
AssertionError: ["foo","bar","baz","a","b","c"] deepEqual ["","foo","bar","baz",""]
at tests/batman/view/loop_rendering_test.js:193:7