[rspec-users] RSpec controller methods testing

2012-05-31 Thread zombiebit
*I am testing my controller and I run coverage "rcov" to learn how much I covered the test. However I cannot test Ruby methods. For example, This is my controller,* class AuthenticationsController < ApplicationController def index @authentications = current_user.authentications if

[rspec-users] RSpec testing update action with ajax

2012-05-30 Thread zombiebit
Hey, I want to test my Rails app. When you click the image ajax sends to data to DB and the data is updated in there. When I try to test, I faced with this problem, 1) RwsController Update widget score takes widget rate information Failure/Error: mock_widget.should_receive(:update_attribut