teams_controller_spec.rb revision 662650fe3787e2d223a325383ea15fc44e0989cc
require 'spec_helper'
context 'not signed in' do
context 'on GET to index' do
before do
end
end
end
before do
end
before do
end
it { should respond_with :success }
it { should render_template :index }
end
before do
end
it { should respond_with :success }
it { should render_template :new }
end
before do
end
it { should respond_with :success }
it { should render_template :index }
end
before do
end
it { should respond_with :success }
it { should render_template :show }
end
before do
end
it { should respond_with :success }
it { should render_template :edit }
end
before do
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