Displaying 20 results from an estimated 600 matches similar to: "Salted Hash Login Generator problem"
2006 Jul 02
2
NoMethodError in Unit Test - Rails Newcomer
I''m working on user authentication system to get familiar with rails,
and have basically solved most of my apps problems till now. I keep
getting the NoMethodError, and can''t understand why.
Model: customer.rb
class Customer < ActiveRecord::Base
...
def self.password=(pass)
@password=pass
salt = Customer.random_string(10) if !salt?
self.hashed_password =
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello,
I have tried to install the salted hash login generator by following the
quick start guide at:
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart.
Everything seems to work fine until I try to run the unit tests by doing
''rake test_units'', then I get the following error message:
<error-message>
[brasse@keso login-test]$ rake test_units
(in
2006 Mar 02
2
Unit tests, salted hash login
Hello,
I am having some trouble running the unit tests for the salted has login
generator. I am a bit new to both ruby and rails so I am having a little
trouble deciphering the error message I get when running ''rake
test_units''. Up till the point where I try to run the unit tests I have
followed the quick start guide for the salted hash login generator
2005 Oct 27
2
Fixtures are not loading into instance variables. Why not?
Hi,
I have a fixture in a unit test and I see that the
fixture is loaded correctly into the database table,
but no instance variables are created.
So now I''m stuck.
More background: this is my first RoR project and I
have just installed the SaltedLoginGenerator and
generated its output.
Running the unit tests gives an error, so I cut it
down to just 1 test:
2006 Jun 08
1
Test errors
I''m working on learning user auth and ran a test/unit/test.rb and seem to
have stumbled across some errors. This is from a tutorial on the web and I
pretty much copied the code and checked syntax so not sure where it''s
wrong. I thought I''d throw it out since I"m new to ROR and the error didn''t
look too bad ;), perhaps someone would have a better
2012 Apr 04
1
sambaHomePath usage
My name is Camelia Botez and I'm linux system admin.
I try to configure samba server usind ldap authentication and different sambaHomePath from login home directory.
For ex. A user user_test has his home (login) directory /home/user_test and I want , using samba map on windows to have /srv/user_test home directory for this user.
We included in ldap schema 2 attributes sambaHomeDrive (H: )
And
2006 Jun 10
2
readline problems
I get the following error:
rake test_units --trace
** Invoke test_units (first_time)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute db:test:clone
**
2006 Jul 31
0
validates_confirmation_of won''t work
Hello folks, this is the first time I''ve written to this forum. If
there''s already a topic on this, forgive me but the search isn''t working
right now.
I seem to have a problem validating confirmation of a password. The
first two snippets are some model code and some test code that work just
fine:
----------------------------
class Challenge < ActiveRecord::Base
2006 Apr 28
2
Accessing fixtures from unit tests
I have set up some fixtures in test/fixtures/users.xml:
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
admin:
id: 1
username: admin
password: admin
pbarry:
id: 2
username: pbarry
I have a unit test for my user model:
require File.dirname(__FILE__) + ''/../test_helper''
class UserTest < Test::Unit::TestCase
fixtures :users
def
2004 Nov 03
5
FireFly Problems
How come FireFly doesn't give me an Inband DTMF option? Only RFC2833 and
Info. RFC2833 is the default, so I left it that way. I also unchecked all
the codecs except g711ulaw to force that codecs usage. However, when I go to
place a call, I get this:
Nov 3 13:18:44 WARNING[53641241]: dsp.c:1468 ast_dsp_process: Inband DTMF
is not supported on codec G.711 u-law. Use RFC2833
Nov 3 13:18:44
2006 Apr 04
3
model validates twice in tests, produces duplicate errors
In my unit tests for my User model, I''m testing some validation cases.
What is really strange, and driving me crazy, is that in the unit
tests, it seems like the save method is causing my validations to
execute twice, and produce duplicate error messages. This is making my
tests fail (because I''m checking for the number of errors that I
expect). In the web browser, only one error
2007 Apr 06
4
Newbie having full text search problem with acts_as_ferret
Hi guys,
I am using acts_as_ferret to do full text search on my models and I am
having problem on three-letter word searches.
I am going to use an example to explain my problem. Here it is:
There is a table called users and it has login, first_name, last_name
columns. There are three rows inside it.
login first_name last_name
bob bob henry
longbob nil
2006 Jun 23
1
''Series'' Pluralization
Howdy,
I have a model I called ''content_series''. I created it and noticed that
Rails called it ''Sery'', so I added ''series'' to the uncountable thing in
the config, like this:
Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, ''\1en''
# inflect.singular /^(ox)en/i, ''\1''
#
2006 Mar 29
10
newbie question
Hi, I am new to Rails, I followed the cookbook tutorial, it worked fine, but
when I started another tutorial called todo :
when I type : http://127.0.0.1:3000/todo/new
I get this error :
Routing Error
Recognition failed for "/todo/new"
please help me.
--
View this message in context: http://www.nabble.com/newbie-question-t1359958.html#a3643454
Sent from the RubyOnRails Users forum
2006 May 02
2
Autotest doesn''t work on WinXP?
When I try to run autotest (zenspider) (which looks VERY cool), I get this
error:
(run from within a Rails app directory)
C:\ruby_home\analysis>autotest -rails
# Testing updated files
+ c:/ruby/bin/ruby -Ilib:test -e ''["test/unit/user_test.rb",
"test/unit/role_test.rb"].each { |f| load f }'' | unit_diff -u
''c:'' is not recognized
2012 Nov 17
0
How to get more debug information in test log ?
Im one of my unit tests, I got an error I cannot even start looking for the
issue as few information are logged ...
Using the test console , there is no error at all :
> rails console test
>> Loading test environment (Rails 3.2.9.rc3)
> site1 = FactoryGirl.create(:cms_site, label: "booboo")
>> BEGIN
..
..
>>
but running my tests > unit
> ruby -Itest
2019 Aug 10
2
samba-tool ou create "OU=del-ou, dc=atest, dc=com" fails with /var/lib/samba/private/sam.ldb: No such file or directory
Hello,
I am trying to use samba-tool to create OU on active directory.
1. Joined to domain.
# net ads join -U <>
2. Listed GPO's on domain to check samba-tool script can pull the GPOs.
# samba-tool gpo listall
GPO : <>
display name : test-Computers-GPO-1
path : \\atest.com\SysVol\atest.com\Policies\<>
dn :
2024 Jun 09
2
Format
HI all,
My
I am trying to convert character date (mm/dd/yy) to YYYY-mm-dd date
format in one of the columns of my data file.
The first few lines of the data file looks like as follow
head(Atest,10);dim(Atest)
ddate
1 19/08/21
2 30/04/18
3 28/08/21
4 11/10/21
5 07/09/21
6 15/08/21
7 03/09/21
8 23/07/18
9 17/08/20
10 23/09/20
[1] 1270076 1
I am using the following
2006 May 04
2
Testing associations
I have a pretty simple model, articles and users.
class Article
belongs_to :user
end
class User
has_many :articles
end
In my unit tests I want to ensure that the associations work properly.
What''s the best way to do this? The obvious thing to do is a test in
each model.
# user_test.rb
def test_add_post
u = users(:first)
before_articles = u.articles.count
u.articles
2006 Aug 23
2
Rename folder bug dovecot-1.0RC6 ?
Dear All
can someone confirm this bug please ?
I am using Thunderbird 1.07, TB 1.5.0.4, Horde/IMP webmail as test clients,
all running on FC4.
Server is 1.0RC6 on CentOS 4 with maildir-sep set to ';'
To reproduce:
In your favourite mail client:
1. Create a top-level mail folder "atest"
2. Rename "atest" to "atest-extra" (basically