Sha256: 12b52508185b5fbd388afd7aff173d65f15572e94fd3e6d1d3851fcae87233ef
Contents?: true
Size: 731 Bytes
Versions: 10
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' describe Admin::SettingsController do before(:each) do activate_authlogic user = FactoryGirl.build(:spud_user) user.super_admin = true SpudUserSession.create(user) end describe :edit do it "should respond with success" do get :edit response.should be_success end end describe :update do it "should redirect to the settings page with a successful update" do put :update, :spud_user => {:first_name => "Mike"} response.should redirect_to(admin_settings_path) end it "should put a message in the flash notice" do put :update, :spud_user => {:first_name => "Mike"} flash[:notice].should_not be_blank end end end
Version data entries
10 entries across 10 versions & 1 rubygems