Displaying 3 results from an estimated 3 matches for "news_releases".
Did you mean:
news_release
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
@news_release = NewsRelease.find(1)
end
def test_create
assert_kin...
2006 Jun 08
2
accessing fixtures in tests
...rt_equal @first_test.id , @news_release.id
unfortunately, i try that and get:
"test_create(NewsReleaseTest):
RuntimeError: Called id for nil, which would mistakenly be 4 -- if
you really wanted the id of nil, use object_id"
after looking on api.rubyonrails.com, i saw and tried this:
@news_releases["first_test"]["id"]
and now i get the following error:
"NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]"
thanks in advance,
--
All the best,
Mat...
2005 Dec 16
8
HW Echo Cancellers
Hi,
To solve echo problems, I'm considering 2
alternatives.
1> Sangoma A104d
- I can't find support for asterisk 1.2.1
2> Desktop echo canceller
-
http://www.oriontelecom.com/echo_canceller/desktop/e1_ec_desktop.html
- I want to know where to buy and price.
Any suggestion is appreciated.
Thanks.
Jason.
p.s. : asterisk cli command "reload" can change
rx_gain and