On 21 Oct 2009, at 17:31, Elza wrote:
How can I spec the 3rd line of my controller?
What does that method do to the other objects in your domain? Can you
describe that behaviour easily using mocks and stubs?
If not, you would be best to move the method out of the controller and
onto an
How can I spec the 3rd line of my controller?
update_successful, error_msg = update_channels_association
def create
@user = User.new(get_param(:user, :hash))
if @user.save
update_successful, error_msg = update_channels_association
set_flash_if update_successful,
:resource_s