Sha256: 9ed7dcf1b5a87835be24639eb2f38ac935328cfff8bb8ac53e59aa66868ccc9a
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
require 'spec_helper' describe UsersController do describe "current_identifier" do it '01' do get :index @controller.send(:current_identifier).should == "user" @controller.send(:current_model).should == User end it '02' do Factory(:user) get :show, :id => 1 @controller.send(:current_identifier).should == "user" @controller.send(:current_model).should == User end end describe "base_action" do it '01' do ids = [Factory(:user), Factory(:user)].map(&:id) @request.env["HTTP_REFERER"] = users_path put :update_all, :ids => ids flash.notice.should == "The operation was successful" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
induction_cannon_01-0.0.5 | spec/controllers/users_controller_spec.rb |
induction_cannon_01-0.0.3 | spec/controllers/users_controller_spec.rb |