similar to: Testing trouble?

Displaying 20 results from an estimated 3000 matches similar to: "Testing trouble?"

2006 Jan 28
1
Method for returning a random date between two dates
Hi, I''m trying to create a method to return a random date within a range. So far, I''ve come up with this... require ''parsedate'' def random_date (a, b) adate = ParseDate.parsedate(a) bdate = ParseDate.parsedate(b) atime = Time.local(*adate) btime = Time.local(*bdate) atime + (rand * (atime - btime) ) end ...and it doesn''t seem to
2006 Aug 11
5
Unit tests - NilClass problem
Hi! Yesterday I started to write my unit tests for the fist time using rails. I''m using this method: http://blog.codahale.com/2005/12/23/a-rails-howto-simplify-your-unit-tests/ My customer_test.rb looks like this: require File.dirname(__FILE__) + ''/../test_helper'' class CustomerTest < Test::Unit::TestCase fixtures :customers # Replace this with your real
2006 Mar 20
2
Testing Models And Fixtures
I have finally decided to look into testing and I am going through the examples in the AWDWR book and I tried the following and it does not work... even though I don''t see why it shouldn''t. =========== posts.yml =========== basic_post: id: 1 title: Title body: Body created_at: 2006-02-01 00:00:00 updated_at: 2006_02-02 00:00:00
2006 Jan 26
0
Troubleshooting a camping trip?
I''m anxious to get camping[1], but when I try to run the sample app[2] with: camping home_page.rb I get the source HTML in the terminal along with this errror: ##BEGIN ERROR /usr/local/lib/ruby/gems/1.8/gems/camping-1.2.46/bin/camping:26:in `const_get'': nil is not a symbol (TypeError) from /usr/local/lib/ruby/gems/1.8/gems/camping-1.2.46/bin/camping:26 from
2006 Mar 19
2
Unit test confusion
Hey all, I''m following along with AWDWR, specifically the unit testing. On page 148, it shows you how Test::Unit::TestCase will automatically define instance variables based on your fixtures. It doesn''t seem to actually work, though. It seems that both @artists ["beatles"]["name"] and @beatles.name are nil objects in my test, where as
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/7769 ------------------------------------------------------------------------ r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line MySQL: speedup date/time parsing. ------------------------------------------------------------------------ U
2006 Jul 04
1
Has_many :through with checkboxes?
Just when I started getting the hang of has_and_belongs_to_many relationships, I realize that I should probably convert several of my app''s joins to has_many :through type relationships. One example, pairing users with categories via subscriptions, where each user can be the "owner" of a category, has given me particular trouble when I try to update a user''s
2007 Jan 20
1
Camping on Media Temple?
I''m getting into camping in a big way--I love that you can put together full-fledged apps with so little code and overhead. Does anyone know of any documentation about getting Camping apps running on Media Temple''s GridServer? Of course I''ve found the Camping server page[1], but I can''t work out how to associate running camping apps with a (sub)domain
2006 Jun 08
1
fixtures instance variable naming
hi all, trying my first foray into testing and having trouble with accessing the fixture instance variable built a test for my NewsRelease model. have a news_releases.yml as a fixture with: first: id: 1 title: my first release body: this is still my first test of a news release publish: 0 date_publication: 2006-06-06 17:28:00 in news_release_test.rb, i have def setup
2015 Feb 02
0
Asterisk 13, PJSIP and T38 problem
Hello, I need help to solve a problem that I am having using Asterisk 13, PJSIP and T38. My setup is as follows: SIP Provider --> Asterisk 13 --> Patton --> Physical Fax I need to get the fax directly in T38 to Patton. The provider sends me the fax in T38. If I receive the T38 fax on Asterisk (using an hylafax device), I can properly receive the fax. If I send a T38 fax with Asterisk
2009 Feb 26
0
Patton 5.3. How to get incoming calls ? [SOLVED]
Hi, Changing the line bellow helped to get incoming calls but I add to remove secret= option in sip.conf (otherwise, Patton wouldn't respond to 407 Auth required challenges). If someone could enable secret and still get incoming calls (in any SmartWare 5.X), please, do not hesitate to share here ... interface sip IF-ASTERISK bind context sip-gateway ASTERISK route call dest-table
2009 Feb 25
0
Patton 5.3. How to get incoming calls ?
Hi, I'm trying to configure a 4638 to pass inbound and outbound to and from ISDN and SIP interfaces. I'm using web interface at the moment. Setup is: ISDN -- <BRI> -- Patton 4638 -- <SIP> Asterisk -- <SIP> -- <IP Phone> I can call from IP phone but can't receive any incoming call : I can't see any SIP message coming in when a call comes in. Previously,
2008 Jan 24
1
Patton SmartNode Help
I have been given a Patton SmartNode 4114 and asked to get it working as POPS gateway for our asterisk box. The 4114 has 4 FXO ports. It's got firmware 3.21 on it. I currently have a single POPS line plugged into port 0. I can not seem to get the two to talk together. I am running asterisk 1.2.21.1. I am seeing the following repeatedly in * Jan 24 16:23:40 NOTICE[17063]: chan_sip.c:11291
2006 Jul 24
1
All functional tests fail with RoutingError
All, I''m using InstantRails 1.0 on Windows XP and all my functional (controller) tests fail with ActionController::RoutingError, although the actions work OK through a web server/browser. Here''s an example of an error: 1) Error: test_create(AdminControllerTest): ActionController::RoutingError: No url can be generated for the hash {:controlle r=>"admin",
2010 Apr 30
5
Asterisk and Patton
Hi, we have and Asterisk server connected to a Patton Smartnode 4638 with 4 BRI. We configured 4 SIP account on Patton (1001, 1002, 1003, 1004). The system is fully functional, but we have a problem to recognize incoming calls from Asterisk: when a call come from SIP/1001 (BRI 1 on Patton) or SIP/1002 (BRI 2) or SIP/1003 (BRI 3) Asterisk record a call coming from SIP/1004. I have contacted Patton
2018 Jan 09
2
PJSIP: identify endpoint by authentication username?
Dear fellow list readers This is the situation: ISDN Devices => Patton ISDN to SIP GW => Asterisk PJSIP The Patton GW resides on a dynamic IP address, so I cannot really use match=ip in the identify section. The Patton does not send a line parameter. The ISDN Devices behind the patton have different MSN and should be able to send them in the From: Header, so the default endpoint
2006 Jan 04
0
OT: Displaying errors on credit-card processing
Hi, This question isn''t Rails-specific, but since Basecamp (& the family of premium 37signals apps) have the best implementation of credit-card processing I''ve seen, I''m hoping maybe DHH could lend an answer. Of course, anyone is welcome to chime in! # Some background Our nonprofit is building a Rails-driven store and donation center and our developer is
2009 Feb 02
2
Configuring Patton SmartNode with ISDN2e and Asterisk
Hello Does anyone have any experience with configuring BT (British Telecom) ISDN2e lines to work with Patton SmartNodes - and then Asterisk? I have a Patton SmartNode 4638, which is now connected to 3 x ISDN2e lines - and in turn connected to our internal LAN. I'm having huge issues configuring the SmartNode to successfully "see" the ISDN channels - and to be honest, I'm
2006 Sep 13
1
Net::HTTPResponse
Hello :) I have a problem with the Net::HTTP library... The Net::HTTP library [1] uses a Net::HTTPResponse object for all it''s responses from web servers. This class has many subclasses, such as HTTPSuccess, HTTPRedirecttion, etc. When obtaining a response, the library suggests to check what it is by testing the class of the returned object - using case/when or kind_of? (which it does
2010 May 09
1
B410P and Patton smartnode : any success ?
Hi, 1. Has someone met any success at all, connecting a Digium B410P to a Patton Smartnode 4638 (with latest 5.3 firmware) ? 2. If positive, then, which signalling was used on both sides ? My project's goal is use a Patton Smartnode 4638 to act as telco BRI lines, from a B410P-enabled asterisk box. In my testings, I can see channel is respectively up (with patton web server status page)