Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
obs-server
obs-server-2.7.1-0027-ci-Fix-state-setting-in-t...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-server-2.7.1-0027-ci-Fix-state-setting-in-the-user-controller-test.patch of Package obs-server
From 581fe2ce19d3f88bea57e648088231315592b8f0 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang <hvogel@opensuse.org> Date: Tue, 16 Aug 2016 11:55:13 +0200 Subject: [PATCH 27/29] [ci] Fix state setting in the user controller test --- src/api/spec/controllers/webui/user_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/spec/controllers/webui/user_controller_spec.rb b/src/api/spec/controllers/webui/user_controller_spec.rb index 7b55c5f..4a9fe52 100644 --- a/src/api/spec/controllers/webui/user_controller_spec.rb +++ b/src/api/spec/controllers/webui/user_controller_spec.rb @@ -84,7 +84,7 @@ RSpec.describe Webui::UserController do end it 'tells users about wrong state' do - user.update_attribute('state', :locked) + user.update_attribute('state', User::STATES['locked']) post :do_login, {username: user.login, password: 'buildservice'} expect(response).to redirect_to root_path expect(flash[:error]).to eq("Your account is disabled. Please contact the adminsitrator for details.") -- 2.7.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor