should assign_to\((.*)\).with\(nil\) assigns($1).should be_nil should assign_to\(:(.+)\).with\((.+)\) assigns(:$1).should == $2 should_not assign_to\(:(.*)\) assigns(:$1).should be_nil should assign_to\(:(.*)\) assigns(:$1).should_not be_nil
Links to some doc here