The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Mikael Henriksson <mik...@zoolutions.se>
Date: Sun, 6 Mar 2011 19:58:51 +0100
Local: Sun, Mar 6 2011 1:58 pm
Subject: Fw: assign_to failing in Rails 3 / RSpec 2 / Shoulda 2.11.3 (Expected action to assign a value for @var)
> Ok, full code comming up
> context "as admin" do > before do > user = Factory(:admin) > @orders = [] > 10.times do > @orders << Factory(:order) > end > sign_in user > User.current = user > controller.stubs(:current_user).returns(user) > Order.stubs(:all_for_index).returns(@orders) > get :index > subject { controller } > it { should assign_to(:orders) } #this does not work You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||