このコードがあるとしましょう:
require 'spec_helper'
describe "authorization" do
describe "for non-signed-in users" do
let(:user) { FactoryGirl.create(:user) }
describe "in the Users controller" do
describe "submitting to the update action" do
before { put user_path(user) }
specify { response.should redirect_to(signin_path) }
end
end
end
end
それ以外の:
指定 { response.shoredirect_to(signin_path) }
使用できなかった理由:
その { response.should redirect_to(signin_path) }