| Path: | README |
| Last Update: | Thu May 08 10:52:04 -0600 2008 |
ICandy is an integration test visualizer for Rails. It includes methods for displaying the results of integration test queries in a browser or other application. Failing tests are displayed automatically.
ICandy creates a file called "testing.html" in the /public directory. If the application is using revision control set it to ignore this file.
def i_candy_test
open_session do |session|
# open a page in the application
session.get(foo_path)
# opens the result in a broswer
session.open_result
# opens the result in application
session.open_result(:application)
# sends the current url and params to your browser to open in the
# development environment
session.open_result_in_development
# assertion error - calls open_result automatically
session.assert_select 'div[id=does_not_exist]'
end
end
Copyright (c) 2008 World Wide IDEA, Inc., released under the MIT license. [ www.wwidea.org ]