Testing Ace Editor with Capybara & RSpec
I’ve been working with a developer who is putting together a Rails app to give other developers easy access to an in-browser Ruby development environment. You can check it out here.
One of the challenges we faced was how to test the Ace editor that users will enter their Ruby code into.
Here’s how we solved it:
This solution has been tested in Firefox 40.0.3 on Mac OS X.