ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Include capybara for integration tests (Feature #747)
I've been using webrat and capybara in my plugins for awhile now and have found capybara to be really useful to drive integration tests.
I propose we include it for 3.0 and then we can start using it as needed (for new tests or existing tests).
The main benefit is that capybara can drive actual usage of the app; things like clicking links and filling out and submitting forms. Right now the integration tests "fake" this by sending get/post/put/delete requests to the server. This will really help with refactoring too, i.e. if a form's url was missed during refactoring, capybara will submit it to the old url, which will fail the test.
I'll supply a pull request in a few minutes (it's just a gem addition and some helpers I've refined).
Pull request ready: https://github.com/chiliproject/chiliproject/pull/136
Later on I'd like to port the existing integration tests over but they will need to be done 1-by-1 (e.g. get 'url' vs visit 'url' and click_link). The following snippet should add capybara to an existing integration test:
1class YourIntegrationTest < ActionController::IntegrationTest 2 include IntegrationTestHelpers::CapybaraHelpers 3 include Capybara 4 5 # ... 6end
- Status changed from Open to Ready for review