similar to: problem to mock association proxy

Displaying 8 results from an estimated 8 matches similar to: "problem to mock association proxy"

2008 Dec 05
10
proxy associantion on controllers
Hello, I'm trying learn Rspec but having problems to understand when and how user mocks and stubs. I have a properties_controller with to before_filter actions (check_administrator_role e load_user)... to access index action of properties_controller I need have a params[:user] and this parameter
2008 Dec 17
19
fixtures and associations
Hello... I want ask for a help in error that don't understand. I have properties model and tenants model. Tenant belongs to Property and Property has many Tenants... I try this test association but allways get "not valid" error for association. Anyone can help? I post all my classes below: My
2008 Dec 12
2
Problem when testing controllers
I'm having troubles to test methods on controllers, specially this method: def update @property = @user.properties.find(params[:id]) if params[:property][:owner_id].blank? @owner = Owner.create_from_user(@user) @property.owner = @owner end if
2008 Nov 11
3
How to expect no layout
Hey guys. I've told one of my controllers to not render a layout for a certain action: layout false, :only => :map_info_window Now I'm trying to spec that, but this: it 'should not render a layout' do controller.expect_render :layout do_get end fails with this:
2008 Sep 05
10
2nd attempt at mocking and stubbing
So, after reading all of those fantastic emails discussing testing behaviour vs state, I decided to try mocking and stubbing a couple of methods. I think I did well on my first one, but I'm not sure what the best way to spec the following method is: 1 class RentalMap ... 166 def
2006 Feb 08
5
beginner - problem with understanding relationships
Hi folks, I'm new to this... so hopefully someone can help me. I have a few objects... Property and Address and Landlord... where a Property has an address and a landlord has an address also. I've modelled this in the db with the properties table having an address_id and the landlord table
2006 May 11
2
Making my site multi-lingual
Hi, I'm wondering how I should go about making my website multi-lingual. Basically, there will be different content for the different languages, and that's not really a problem... all I need to do is give each content entry in the database a language_id. But the problem is with the non-content text,
2011 Nov 14
2
about R instalation
Hello, I would like to get help on the instalation of R. I have too few free space in my pc hard disk. So I wonder if it is possible to install R on an external removable hard drive. Can it be done? How should I proceed? Thank you for your help. best regards, Francisca A. S. dos Santos Bronner