similar to: test question

Displaying 20 results from an estimated 30000 matches similar to: "test question"

2006 Aug 07
1
newbie Capistrano question
Hi, My name is Paul Kristoff and I am rather new to rails. I am trying to use Capistrano for the first time and am rather confused. My confusion boils down to the :repository variable in the deploy.rb file. Is this supposed to point to where your code is currently being stored? Here is what leads to that question, I am working with an ISP that supports rails. I originally had the
2006 Feb 22
0
Problem: Null values in a CSV format fixture show up a 0 in the test database
Hi all, I''m running into a strange problem. I''m trying to get null values to load from a fixture in CSV form into my test database, but they show up as 0 (zero). I have a table people (simplified version below) create table people ( id int not null auto_increment, target int null default null, name varchar(50) not null, primary key(id) ); that has a
2006 Sep 04
2
Question about ACMError
Hi all, Could you teach me about the behavior of xm commands when ''ACMError'' occurred? I am testing the behavior of xm commands with wrong arguments. When I tested xm commands related to security (xm *label/*policy), I found that some of them. - return 0, - show ACMError''s Traceback messages. Are these results specifications or bugs? Example: # xm cfgbootpolicy
2004 Dec 09
3
fixture problem, TypeError: nil is not a symbol
When I run rake against Rails 8.5 to test unaltered model tests with yaml fixtures I get the error and stack trace reproduced below for every one of my model objects. Has anyone seen something this before? Any idea what could be going on here? The following ruby-talk thread may or may not be relevant: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95301. Thanks much,
2006 Nov 04
0
How to reference fixture under folder ?
Hello all, I have a fixture under folder-grouping : ./fixtures/foo/bars.yml I need to reference the data in bars during functional test. methods.sort reveals ''foo/bars'' as a method in the current context (breakpointed), but I don''t know how to reference a method called ''foo/bars''. - OR - how should i reference the fixture when I''m using
2001 Jun 28
2
plan/date for new features
Greetings, With all the press concerning the 'almost 1.0' release of vorbis; I see a lot of messages floating around as 'now 1.0, and -soon- it will include joint-stereo, Wavelets, low-bitrate, peeling, etc. etc.' Before I start 'advocating' vorbis and tell everybody what it all can do; is there actually a date or some other planning when all those
2006 Jan 16
2
My first test - named fixture not autoloading instance variable
I''m trying to write a test like the one at the bottom of page 148 in Agile Rails. I''m using rails 1.0 I''ve created the fixture correctly I''m pretty sure because the test database table is being populated per the fixture. I have what I think is a simple unit test: ========= require File.dirname(__FILE__) + ''/../test_helper'' class CaseTest
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error... app/controllers/info_controller.rb:9: syntax error this is what is inside of info_controller, class InfoController < ApplicationController def who_bought @product = Product.find(params[:id]) @orders = @product.orders respond_to do |accepts| accepts.html accepts.xml end end if someone could please help me... -/ James --
2006 Apr 26
3
Test fixture syntax
OK, I know I''m doing something bone-headed, but I can''t for the life of me figure it out. I''ve read the test fixtures Rdoc about eight dozen times, and it says (to me) that if I have a YAML fixture file, dogs.yml that looks like this: fido: id: 1 breed: Terrier fifi: id: 2 breed: Poodle Then I can include fixtures :dogs in my functional test, and
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
2006 May 30
0
data fixtures for non-activerecord models
I have a model that as an instance maintains a session on a website, and has methods to return some scraped data. Instead of hitting a URL over and over during testing, I would like to just save the source to a file and use that like a fixture. A mock object doesn''t seem appropriate, because there is a lot of data here. What I''m doing now is storing each separate
2001 Mar 12
0
[fwd] BOUNCE vorbis@xiph.org: no visible to: addresses (from: owner-vorbis@xiph.org)
(forwarded due to filter bug) ----- Forwarded message from owner-vorbis@xiph.org ----- Subject: Re: [vorbis] Problem compiling ogg on OpenBSD-2.7 In-Reply-To: <Pine.LNX.4.10.10103092239210.2634-100000@bhairavi.cse.iitd.ernet.in> Message-ID: <Pine.LNX.4.21.0103101338470.3382-100000@frigg.belbone.net> Organization: Belgacom Multimedia - Internet backbone MIME-Version: 1.0 Content-Type:
2001 Jun 27
1
DI stream on xmms?
Greetings, Is there a way to play the Digitally-imported OGG stream using xmms? I've tried it using ogg123, and it seams to work OK! But, I haven't managed to get it running on xmms. I've downloaded the latest plugin (xmms tells me version 1.2.4) and installed the 'RC1' rpms; but this doesn't work yet. (The player fill-ups it buffers; but doesn't start playing; and
2001 Sep 25
1
simputer
Greetings, Today, there was something on the news of the 'simputer'; a very 'simple computer' that currently is being developed in India. (http://www.simputer.org/). (palmtop computer priced some 1000 Rs -which should be roughly some 160 euro-. It's based in linux and one of the ways it tries to be as cheap as possible is by avoiding all kind of licensed technology. Now, when
2006 Jan 19
4
hash fixture access broken in functional test
I have a functional test class that uses the "topics" fixture. I verified that the fixture is loaded into the database by doing this: assert_equal 2, Topic.find_all.size So I should have an instance variable called @topics and instance variables for each of the rows in the fixture, in this case, @first and @another. But all those variables are nil inside my test method. Is that
2006 Jun 08
2
accessing fixtures in tests
hi all, my first attempt at tests and i''m having trouble accessing the fixture values, if anyone can make it suggestions. i have news_release_test.rb, using new_releases.yml as the fixture file according to the agile book, i should be able to access the fixture properties within my test as such: assert_equal @first_test.id , @news_release.id unfortunately, i try that and get:
2006 May 22
1
Agile Web Dev unit test fails with fixture instance variable
I''m following Agile Edition 1. On page 148 it suggests using instance variables named after the fixture, for example: assert_equal @version_control_book.id, @product.id When I introduce this type of instance variable into my test, I get the following error: 1) Error: test_not_owner(GroupTest): RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the
2006 Aug 03
2
Including ALL fixtures for a test
I am running into some issues with my functional tests because they need info from almost every single table in the database. I have long laundry lists of fixture names to include on these test files and then I have to troubleshooot bizarre test failures because of a fixture that was not included. So is there a way to simply include all fixtures in a test? Something like: fixtures :all
2006 Jul 29
1
Anything wrong with this test? Cannot access fixture
Hi, I have problem accessing the testfixture. The values from the YML-Fixture-File are correctly written into database, but accessing the fixture is impossible. It is always nil. Is anything wrong with this test? class MyModelTest < Test::Unit::TestCase fixtures :my_model def test_simple a = MyModel.find(@my_model["first"].id) # Accessing @my_model is impossible ...
2006 Jul 26
1
fixtures not loading when running rake test - ok other times
Hallo -- I have the most bizzare problem. I have a test called PropertyTest that runs absolutely fine. Even if I totally clear the test database before running it, it happily scoots off, loads all necessary fixtures, runs & passes all tests. My problem arises when I run rake test:units. Then, all other tests pass fine, but this one starts failing as if the fixture data simply