teams_controller_spec.rb revision 7c7a19761235efff584ee65a1c6dc4aa1735ff64
require 'spec_helper'
context 'not signed in' do
context 'on GET to index' do
end
end
it { should respond_with :success }
it { should render_template :index }
end
it { should respond_with :success }
it { should render_template :new }
end
it { should respond_with :success }
it { should render_template :index }
end
it { should respond_with :success }
it { should render_template :show }
end
it { should respond_with :success }
it { should render_template :edit }
end
end
before do
team.users << member
sign_in member
delete :destroy, id: team.id
end
it { should redirect_to(:root) }
it { should set_the_flash.to(/not authorized/) }
end
end
end
end
end