rspecでコントローラーの履歴

リダイレクト

    describe :response do
      subject { response }
      it { should be_redirect }
      describe :redirect_to do
        subject { URI.parse(response.redirect_url).request_uri }
        it { should == '/u/login' }
      end 
    end