Displaying 20 results from an estimated 1000 matches similar to: "too many ex-(boy|girl)friends"
2010 Aug 16
3
Load dummy data using Factory girl
Hello,
I wanted to know how to load dummy data in the application using Factory
girl.
I had done this using Fixtures.I had made a fixtures folder into the
test folder and run the command "rake test fixtures:load"
Currently i tried using factories in the spec which is working fine.
Wanted to know know regarding loading dummy data.
--
Posted via http://www.ruby-forum.com/.
2012 Nov 12
1
Factory girl associations and rspec
Hi,
I am trying to test factory girl associations basically I have a user
model and status model , what is supposed to happen is a user has many
statuses and a status belongs to a user. I have tried to model this in
factory girl as you can see in the files. When I try to execute the test
I get
Failure/Error: visit("/users/#{user.id}/statuses/#{status.id}")
2010 Sep 01
1
Faking Paperclip has_attached_file with Factory girl?
Hello!
I wonder if it''s possible to simulate Paperclip''s has_attached_file
with Factory Girl and then test it with Rspec. I don''t get it to work.
My factories.rb file looks like this:
Factory.define :user do |user|
user.name "Anders"
user.email "user-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
user.password
2009 Jun 02
3
valdate_presnce_of email, :if => :validate_id + Factory girl
Hi
In the model I have User
attr_accessor :validate_email_id
validates_presence_of :email ,:if => :validate_email_id
Could anybody please tell me how can I define a Factory for the above?
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
2013 Mar 28
0
Can not determine issue in my factories with factory girl in rspec
Hi Folks,
I hope you''re doing good. Sorry for a long email. I am just trying my best
to learn something new and, need your help to understand/ sort a small
issue which I am not able to figure out.
I have create couple of factories and created some examples for rspec for
one of my projects. I have got everything working on my local. Even, my
specs are green on local for both ruby
2018 Jan 09
0
[FORGED] RE: [FORGED] Re: Revolutions blog: December 2017 roundup
On 10/01/18 09:31, Doran, Harold wrote:
> It would be better for you to instead read the blog post that
> uses extremely derogatory language instead of your silly post below.
I did read it, somewhat cursorily I admit, and saw no derogatory
language whatever, which is why I was puzzled.
cheers,
Rolf
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone:
2011 Jan 17
4
Factory Girl and attr_accessor with validation
I have a problem with a recent change to one of my models when created
via Factory.create.
class User < ActiveRecord::Base
attr_accessor :tc_check
validates :tc_check, :presence => true, :acceptance => true
...
end
The following definition fails, when calling
Factory.create(:valid_user)
Factory.define :valid_user, :class => User do |u|
u.email
2004 Jan 21
9
New Windows IAX Client
Announcing a new Windows-based IAX/IAX2 client. Please download it and
give it a try. Let me know about any bugs, and any missing features. I
have yet to come up with a catchy name for it, so at this point it calls
itself IAX Phone. (Suggestions? Non-derogatory suggestions,
preferably).
Download: http://www.sokol-associates.com/Downloads/IaxPhone.zip
Reference & Support Page:
2006 Nov 08
2
flash transfer problem in asterisk integration with old PBX
I've tried to transfer a call using the Flash command, but with my
configuration it doesn't work.
I have a traditional PBX connected with a zap channel to Asterisk that acts
like an IVR:
TELCO line --> traditional PBX (FXS) --> (FXO) Asterisk
>From the TELCO line I can make a call to the traditional PBX and reach
Asterisk, the IVR system on Asterisk answers the call and I can
2010 Jun 27
2
How to import registry of Windows XP backup?
I have a game for Windows where the entire game status is saved in the registry. The game works good under Wine. After a reinstallation the registry got wiped out and therefore my game status.
(This game is not important, it could be any program which writes something very important into the registry which I need to restore)
But I have an entire backup of my old Windows XP installation. Because
2006 Sep 17
2
Running just part of dovecot
I'm currently setting up a large mail system, with different services
split out onto different machines. What I want is this:
machine1: dovecot smtp auth, no pop/imap
machine2: dovecot lda, no pop/imap
machine3: pop/imap, nothing else
machine3 is obviously not the issue. Is there a way to run machine1
and machine2 with just their respective services, but no pop/imap?
--
Marshal Newrock
2011 Sep 27
3
Please remove the formation about RAQport it is incorrect
Please remove the formation about RAQport it is incorrect
http://lists.centos.org/pipermail/centos/2007-September/043643.html
Alex Lech Bajan
Principal
RAQport Inc.
2004 North Monroe Street
Arlington Virginia 22207
703-528-0114 voice
703-652-0993 voice 2
800-695-6200 toll free
sales at raqport.com
http://raqport.com
2013 Sep 16
3
Evergreen ILS on CentOS?
I spent a number of hours at one of the local SF clubs turning a desktop
into a dual-boot (if they ever need that for anything) CentOS 6.4 system,
then trying to install Evergreen, an oss library package.
Can you say, "dependency hell"?
I suspect they wrote it on Ubuntu (this is client/server software, dunno
why they'd do that). At any rate, I yum installed the postgresql 9.x
2006 Jun 03
2
Busy Signals after hangup
I've not seen an answer to this in any forum.
I make a call through Asterisk, with a VOIP phone, doesn't matter which.
The call gets made, I leave a voicemail, or complete the call in some
manner, and the other side hangs up. I hear a busy signal on the phone
on my end.
If I have an extension that looks like this, after the hangup() is
executed, my phone gives busy signals until I
2006 Mar 25
11
Firefox ''Rails Mailing List'' search engine plugin
Hi all,
If you''re like me you probably spend a lot of time search the Rails
mailing list. To make life a little bit easier I''ve created a nice
little plugin for firefox ( A whopping 15 lines of markup ). The plugin
uses nabble.com to search the mailing list.
Anyways, I thought I''d share.
If you want to install it the manual way, here''s the code.
<search
2005 Feb 03
1
FastAgi Help
Dear List
after a lot googling and watching source example of FastAGI i cant find a
simple way to convert a very simple perl AGI script... perhaps im not a
developer..
Why i have need to use FastAGI?...Very load CPU usage on my box... with only
100 calls..
So i have two way res_perl or FastAGI on some other box..
I cant test res_perl becasue when i try to compile it i have this error:
2006 May 31
2
AEL2 and CID
Does anyone know how to get CID working in AEL2 ?
In extensions.conf you can do:
exten => 111/666,1,PlayBack(demo-congrats)
exten => 111/666,2,Hangup()
exten => 111,1,PlayBack(demo-moreinfo)
exten => 111,2,Hangup()
and if callerid 666 dialed 111, they would get demo-congrats, everyone
else gets demo-moreinfo.
In AEL:
111 => {
Playback(demo-moreinfo);
2004 Dec 09
2
SCRIPT: Fax Remvoal Please Call: 1-800...
At time to time I receive some junk faxes from some advertising
companies that play smart and don't provide any TSI number so I can not
bock them by the number in Hylafax.
Despite calling their Fax Removal Service 1-800-... number several time
they refuse to obey my request.
So I would like to setup a small script or context loop in
extension.conf if possible and maybe run it overnight; maybe
2005 Mar 31
1
firefox-1.0.2-1.4.1.centos4 unstable?
Has anyone else noticed that firefox is less stable after the recent
security update?
I'm getting several occurrences per day of "just goes poof," i.e.
probably seg fault.
--
Collins
When I saw the Iraqi people voting three weeks ago, 8 million of them,
it was the start of a new Arab world.... The Berlin Wall has fallen.
- Lebanese Druze leader Walid
2004 Jun 17
4
7960 straight through?
if i go off hook and dial 666 from an internal sipura spa-x000
(at extn 141), it rings straight through to extn 666.
using the same dialplan, from a cisco 7960 with 7.1 sip code
(at extn 142), i have to
go off hook
hit NewCall
punch 142 (or any valid extn in the dialplan)
hit Dial
then dial 666
wtf?
sip.conf for crisco
[fiji]
callerid="crisco" <142>