similar to: Case insensitive user names

Displaying 20 results from an estimated 200 matches similar to: "Case insensitive user names"

2008 Mar 05
7
mocking successive return values
I''m having a problems mocking successive return values. I don''t know if I''m doing something wrong or if this is a limitation of rspec mocks. Any ideas of what I may be doing wrong? I''m trying to test the generate_quote_number method. It generates a quote number, looks to see if it is in the db already. If it is, it calls itself to try again. I want
2007 Nov 18
9
Not sure why this is failing
I am not sure why the tests don''t see the call of the new method for the Address class. It can be seen in the controller method where the Address.new is called. >> @address = Address.new(params[:address]) What am I doing wrong? Thanks for the help. Here is the error message: Spec::Mocks::MockExpectationError in ''UsersController handling POST /users should create a new
2013 Jul 22
0
wyrie/puppet-nagiosql -- anyone have experience with this module?
I made two decisions this afternoon that are now related to each other. 1. Use more of the modules that exist in the Forge 2. Rebuild my monitoring server As I perused the various modules that help with managing monitoring packages my eyes fell upon a module that reported to be able to manage nagiosql, a setup that I had been planning on migrating my nagios monitoring to. So I installed
2007 Jun 11
2
Testing create in Rails controller
Hi All So I am a first-time caller ;-) ... and have been trying to apply RSpec to the depot example in Dave Thomas'' book as I build the application. I am having a problem testing the admin controller create method and cannot quite see where I am going wrong so was hoping for a pointer :-) My spec looks like: describe AdminController do before(:each) do @product =
2007 Sep 25
12
Problems with expect_render
Hi there, I''ve been working with RSpec for about a week now, and the process of moving from a Test::Unit + Mocha setup to an RSpec + Mocha environment has been pretty straightforward. Except, I''m having problems with using template.expect_render. I have Mocha enabled with: > config.mock_with :mocha in spec_helper. And then I have a view spec which looks like this:
2017 Feb 21
4
Problems with my simple write conf files method
I have been creating conf files and similar with the following method that I picked up (I think from psotfix docs): cat <<EOF>>/etc/aliases || exit 1 root: youremail EOF See: http://medon.htt-consult.com/Centos7-armv7.html But with postfixadmin I stumbled onto a problem. The following: cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1 <?php
2017 Feb 21
1
Problems with my simple write conf files method
On 02/21/2017 11:03 AM, KM wrote: > I have never used this method per se, but in general in any script if you want to preserve the $ (dollar sign) or variable name you must use a backslash to preserve it. For example change your $CONF to \$CONF. The $CONF should then be printed into your conf file. Thanks that worked. > KM > > From: Robert Moskowitz <rgm at
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all, I feel like I''m missing something really easy and I''m just not seeing it. I''m using the restful_authentication plugin and have a User model. Uesr has_many :things and Thing belongs_to :user. That''s it. I did a "script/generate rspec_scaffold thing" to generate all the necessary bits. The "rake db:migrate" to create the db. At
2017 Feb 21
0
Problems with my simple write conf files method
I have never used this method per se, but in general in any script if you want to preserve the $ (dollar sign) or variable name you must use a backslash to preserve it. For example change your $CONF to \$CONF.? The $CONF should then be printed into your conf file. KM From: Robert Moskowitz <rgm at htt-consult.com> To: centos at centos.org Sent: Tuesday, February 21, 2017 10:50 AM
2013 Jun 04
1
puppet DB providers
Hello, What would you think of moving database, database_grant and database_user types and providers from puppetlabs-mysql to its own module (puppetlabs-dbproviders for example) so that we can develop providers for others RDBMS ? I''d like to develop providers for postgresql, so I think it makes sense to put this types/providers in its own module. best regards, Mickaël Canévet --
2006 Dec 21
3
Speccing private class methods
Hi How can I specify that a private method of a class gets called? If you run the code below, only spec (1) passes. Spec (2) is what I found causing problems in my code, and class (3) is my failed attempt to work around it. (3 really puzzles me - why is a private class method not accessible via send?) Another problem is that stub! makes public methods, which changes the behaviour of
2013 Mar 21
6
How we can create two database Using same credetial using Puppet
Hello All, I wanted to create two two MySQL database with same user credential using Puppet-MySQL. How can I achieve this? Please find my script below. class mysql::vsdatabase { include mysql mysql::db { ''vidispine'': user => ''user'', password => ''user123'', host => ''db.<hostname>.com'', } } How can I add
2013 Dec 09
0
mysql module v 1.0 mysql_grant - database_grant
Hi, I''m using mysql module version 0.6.1 and I wanted to upgrade. After reading a little I saw that migrating from v 1 to 2 must be studied, so I decided to upgrde to version 1. BUT, I''ve seen a couple of warnings on my first run and I''m updating my code, but I''ve found that my old sysntax for database_grant is not compatible with mysql_grant. So, if I had
2017 Feb 22
0
Problems with my simple write conf files method
On Tue, 2017-02-21 at 10:50 -0500, Robert Moskowitz wrote: > cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1 > <?php > $CONF['database_type'] = 'mysqli'; > $CONF['database_user'] = 'postfix'; > $CONF['database_password'] = 'xyz'; > $CONF['database_name'] = 'postfix'; > >
2012 Jul 19
3
Problems granting privileges with puppetlabs/mysql
First off, I''m not sure if I should be asking questions about puppetlabs modules here, if not, I apologise... I''m trying to at least setup my mysql replication user through the mysql module, but I seem to be unable to divine the correct way to do this. I''ve tried a number of different variations, but my user doesn''t get the repl_slave_priv on my user
2007 Apr 17
8
problem with rspec_on_rails and @controller.should_receive(:render) in trunk
Hey guys! I am using rspec trunk, and I am having a little problem with the latest version. (I am quite sure this worked with an older version about a week ago) heres the spec: it "should render the new user form without layout for a xhr request" do @controller.should_receive(:render).with(:layout=>false) xhr :get,:new end and the controller: def new render
2011 Dec 13
0
proftpd graphical clients not working
Hello list, With my latest proftpd server graphical client error on list (ls) directory: Error: Could not read from socket: ECONNRESET - Connection reset by peer Error: Disconnected from server Error: Failed to retrieve directory listing So far I've tried both filezilla and cyberduck. But command line ftp works completely: [dunphy at BAM-025715-TD:~] #ftp jfweb Connected to jfweb.
2006 Oct 09
1
acts_as_ferret: case insensitive search
How can I index and search RoR model objects in a case insensitive manner? In Ferret there is the LowerCaseFilter (http://ferret.davebalmain.com/api/classes/Ferret/Analysis/LowerCaseFilter.html). How can I utilize it and other filters with acts_as_ferret? -- Posted via http://www.ruby-forum.com/.
2006 Aug 14
3
case insensitive exclusion_of
I have the following validation code, however it will allow variations in case. Like ''Admin'' and ''admiN'', etc validates_exclusion_of :login, :in => %w( admin ), :message => "is reserved for system accounts" how can I make this validation case insensitive? -- Posted via http://www.ruby-forum.com/.
2008 Jun 06
1
Making sorting case insensitive
Hello, I''ve been trying to make sorting in ferret case insensitive without any luck. I''ve been searching the mailing list, the docs and nothing. Apparently setting the type option for the sort to string should do it, but it doesn''t. Does anyone know how to achieve this? Thanks. -- Efr?n D?az http://www.efrendiaz.com