I'm now learning how to test rails applications and trying to write tests for one of my little apps. It's almost completely done with Active Scaffold.
I'm now trying to make autogenerated functional tests pass (that ones, that was generated by `rails g active_scaffold` command), but they're not passing. Does anyone do functional testing of AS-powered controllers, and if so, how are you doing that? What my `rake` complaints about: 1) Failure: test_should_create_address(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:21]: "Address.count" didn't change by 1. <3> expected but was <2>. 2) Failure: test_should_destroy_address(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:44]: "Address.count" didn't change by -1. <1> expected but was <2>. 3) Failure: test_should_get_edit(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:35]: Expected response to be a <:success>, but was <302> 4) Failure: test_should_get_index(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:10]: Expected response to be a <:success>, but was <302> 5) Failure: test_should_get_new(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:16]: Expected response to be a <:success>, but was <302> 6) Failure: test_should_show_address(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:30]: Expected response to be a <:success>, but was <302> 7) Failure: test_should_update_address(AddressesControllerTest) [/home/envek/simple_catalog/test/functional/addresses_controller_test.rb:40]: Expected response to be a redirect to <http://test.host/addresses/368308524> but was a redirect to <http://test.host/users/sign_in> Thanks for patience. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/YzEKh_KWN0oJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
