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).
Fixed: possible error when attachment's filename is non-ASCII (#747, #1243, #1089).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1433 e93f8b46-1217-0410-a6f0-8f06a7374b81
[#747] Include capybara for integration tests
[#747] Add some capybara helper methods
Eric Davis at 2011-12-02 02:19 am
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
Eric Davis at 2011-12-09 09:29 pm
unstable. Feel free to start switching to using capybara or adding some more capybara helpers as needed.
- Status changed from Ready for review to Closed