Displaying 1 result from an estimated 1 matches for "playercontain".
Did you mean:
playercontainer
2007 Oct 01
0
View Spec - Misbehaving
I''m trying to write my first view spec; I''ve done some controller specs with
integrated views, but thought that isolating the views for some of these
tests might be nice.
So I wrote this:
> describe PlayerContainer, "show" do
>
> PARENT_ID = 12
> CHILD_NAME = ''Child Name''
> PARENT_NAME = ''Parent Name''
>
> before(:each) do
> parent = mock_model(Customer)
> parent.should_receive(:name).and_return(PARENT_NAME)
> parent...