rspecでコントローラー
0pt
リダイレクト
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
0pt
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
コメントはまだありません