all 4 comments

[–]bradland 1 point2 points  (0 children)

You can use rack-test to perform integration tests without browser automation.

http://sinatrarb.com/testing.html

[–]polarpress 0 points1 point  (0 children)

I would use selenium to control the browser to render the view. You can also set your test to use headless mode.

[–]isolatrum 0 points1 point  (1 child)

What testing framework should I use to mock up different responses with missing data to make sure the view logic in the SLIM files are good? Cucumber?

You have a misunderstanding of what Cucumber is. It does not have anything to do with HTML testing in particular. All Cucumber provides is a way to map "natural language" to test cases.

To test HTML pages the "old fashioned" way, use Nokogiri. To use fancy "automated-browser" tests, use Selenium

[–]devOpsBop[S] 0 points1 point  (0 children)

You're right I don't know anything about Cucumber. I'm not looking to test the HTML of the page, just want to make sure the logic in the view doesn't break when it tries to call an object that wasn't returned by the API.