Displaying 10 results from an estimated 10 matches similar to: "Failure creating model in spec setup not reported?"
2007 Jul 24
11
Mock or Stub strategy for validates_uniqueness_of
Hi,
I''m a bit stuck with mocking a unit test of a join model with regards to a
validates_uniqueness_of clause.
I have
class Book < AR:B
has_many :clippings
various validates_presence_of etc
end
class Clip < AR:B
has_many :clippings
various validates_presence_of etc
end
class Clipping < AR:B
belongs_to :book
belongs_to :clip
validates_uniqueness_of :clip_id,
2007 Jan 18
0
Best way to specify an HTML element inside another
Hi
I know should_have is preliminary but I can''t resist using it...
I have a form that contains a date select (Rails-generated). I want
to specify that the default value for each popup menu is correct
The best I can manage is this:
response.should_have "form > p > select[name=''quote_parameters
[purchase_date(3i)]''] >
2003 May 15
6
Question on LDAP+Samba+PDC
Hello everyone.
Well, I have been working very hard lately, trying to get a server up to
act as our Samba PDC with LDAP. So far, everything seems to be working
well. I've been able to get samba 2.2.8 and openldap 2.0.27 installed with
no problems. I've setup my config files (ldap.conf, slapd.conf, smb.conf)
as well as added some initial entries to the LDAP directory.
I've been
2006 Mar 06
0
two or three tables in one form
Hi
I am new to RoR. I watched video presentation of 15 minutes to create a
blog. What I understand is RoR brings/maps the database table to web
form (using
script\generate model Post and later script\generate controller Blog).
In the case ,I have 2 and 3 tables into 1 form. Does RoR support that?
For example: I store products and providers in two tables. These two
tables link together by
2006 May 25
2
Best way to validate an integer field?
I am trying to validate an integer field called quantity. I don''t know
how to chack if it has gone beyond or below the maximum or minimum value
allowed by the Firebird RDBMS. I tired adding this code to the validate
method in the model:
if (quantity > -2147483648) and (quantity < 2147483648)
errors.add("quantity", "is out of range (must be between
2016 Nov 16
3
[PATCH] ssh-pkcs11: allow providing unconditional pin code for PKCS11
Some HSM's such as Safenet Network HSM do not allow searching for keys
unauthenticated. To support such devices provide a mechanism for users
to provide a pin code that is always used to automatically log in to
the HSM when using PKCS11.
The pin code is read from a file specified by the environment variable
SSH_PKCS11_PINFILE if it is set.
Tested against Safenet Network HSM.
---
2004 Jan 12
2
LCR / Trollphone Rate Engine
Hi. Thank you to Olle, the Wiki, and Trollphone. I found the Trollphone Rate Engine listed on the Wiki at:
http://www.voip-info.org/wiki-Asterisk+addon+rate-engine
I'm not familiar with LCR yet, but this is something that I need to do. I have it all installed but am not familiar with the terminology. Can someone help me maybe figure out what some of these fields are for?
mysql>
2016 Nov 16
2
[PATCH] ssh-pkcs11: allow providing unconditional pin code for PKCS11
I find this approach very bad in general.?
PKCS#11 standard says that *private* keys should not be accessible without authentication. *Public* keys and certificates of course can and should be accessible with no authentication.
SoftHSM misinterpreted this originally (older pkcs11 documents were less clear :), but they rectified this mistake. We should not repeat it.?
2010 Sep 01
0
Error on update_attributes with HABTM relationship
Hope someone can tell me what''s up, because this has me baffled.
I have an Image model, and a Provider model. Both are defined as
"has_and_belongs_to_many" relating to each other. In my image form
partial, I have a bit of AJAX generating the provider_ids array
dynamically from a provider AJAX search on the same page.
So for example, each time I click on a provider name that
2015 Mar 31
7
Wanted: smartcard with ECDSA support
Hi list,
I have no idea if Damien Miller had the time to work on that.
I have an initial patch to authenticate using PKCS#11 and ECDSA keys.
This requires OpenSSL 1.0.2, prior OpenSSL versions do not expose the
required interfaces to override the signature function pointer for ECDSA.
The only limitation is that the OpenSSL API misses some cleanup function
(finish, for instance), hence I have yet