similar to: Intergration testing with ordered fixtures

Displaying 20 results from an estimated 3000 matches similar to: "Intergration testing with ordered fixtures"

2006 Feb 21
0
How do you order fixtures within each yml file?
Hi. I''ve come across the following documentation: Note that YAML fixtures are unordered. If you want ordered fixtures, use the omap YAML type. See yaml.org/type/omap.html for the specification. You will need ordered fixtures when you have foreign key constraints on keys in the same table. This is commonly needed for tree structures. Example: --- !omap - parent: id:
2007 Jan 23
2
SslRequirements plugin and mocha
Hi. I''m loving mocha but have ran into a problem with using the mocha plugin with a project that has the SslRequirement plugin. It seems there is some conflict between the two? Any ideas? $ ruby test/functional/calendar_controller_test.rb /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:478:in `const_missing'': uninitialized constant
2006 Jun 28
2
simply_restful plugin tests failing???
Has anyone successfully ran the simply_restful tests? Here is how I''m running the tests and the first error. I''m I missing something here? >rails test >cd test >rake rails:freeze:edge >./script/plugin install simply_restful >ruby vendor/plugins/simply_restful/test/routing_test.rb Loaded suite vendor/plugins/simply_restful/test/routing_test Started FFFFF
2006 Feb 22
15
Fixtures and Relationships
In my daily development, I migrate back and forth between versions, and often do: rake load_fixtures... ... in order to populate my development database with fun data. Now, with any HABTM relationship, there are failures, as there is no way to say "which" fixtures to load first. Within an actual functional or unit test case, you could simply load them in the proper order, but
2010 Dec 22
1
'No route matches' error with select_tag
Rails 3: I have a view books/:id/show.html.erb - in the view, I have a form with a select tag to pick a template, that on dropdown should submit the form which rerenders the page based on the selection: <%= form_tag book_path(@book) do %> > > <%= select_tag "template[]", >> options_for_select([["Template1","template1"], ["Template2",
2008 Apr 27
1
Odd fixtures behaviour
This is Rails 2.0.2 I have two yaml fixture files, both loading into ARs with acts_as_tree, so they both have the !!omap directive set. One, categories.yml, loads just fine. The other goes very weird, somehow fixtures.rb opens the file, reads "name: All" from the first record, and then tries to open a file called "All", which then fails miserably on line . I can''t
2006 May 02
4
How to extend rails rake tasks?
Does anyone know how to extend the buit-in rake tasks like test:unit. I want to custom load some fixtures in a particular order. Thanks, Zack
2006 Mar 08
6
best practices for handling uploaded images and capistrano
Quick question: I am going to use the file_column plugin to manage uploading thumbnails. By default the images are stored in the public/ dir of the rails project. The problem I see is that when capistrano redeploys a new build and symlinks it in none of the images will be in the new public/ dir... Does anyone have a solution for this? Thanks, Zack -------------- next part -------------- An
2006 Feb 14
2
Inline list editing with RJS: best practices
I wanted to get the community opinion on the best way to use partials and inline list (<li>) editing. I have a very common scenario where a list is rendered: --- index.rhtml --- <ul> <%= render :partial => ''item'', @collection => @items %> </ul> --- _item.rhtml (simplified) --- <li id="item_<%= item.id %>"> <div
2006 Nov 30
5
Populate table from another table
I want to populate one table in a DB from another table so that the user does not need to enter the same information twice. I have a registration table that is populated when a user creates an account. Later I have a form that uses a different table, but contains most of the same info as the registration table. I would like that table to be prepopulated by the registration table before the user
2006 Jan 05
3
has_one :dependent => true question
Hello, I have two classes that are self explanatory and are listed below. class User < ActiveRecord::Base belongs_to :account end class Account < ActiveRecord::Base has_one :account_owner, { :dependent => true, :class_name => "User", :conditions => "is_account_owner = 1" } has_many :users end In the signup controller when an account is created one user
2004 Oct 04
2
3com NBX intergration
How hard is it to integrate * into an existing 3com NBX setup? -Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041004/bf01e3d9/attachment.htm
2006 Mar 16
5
TimeZone, TZInfo, daylight savings, and composed_of
Does anyone know the best way to track time zone information. There doesn''t seem to be much documentation on this. So far it seems like a simple db field like create table accounts ( id int unsigned not null auto_increment, name varchar(50) not null, time_zone varchar(50) not null, ... primary key (id) ) and a class like class Account < AR ...
2006 Jan 02
3
SwitchTower 0.10.0
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles. It was developed primarily to ease the pain of deploying Rails applications to multiple machines, but can
2007 Feb 06
1
Postgres, testing and maybe spurious database DROPpings?
Folks, I don''t like that I have to grant CREATEDB rights to the test user to get testing working smoothly with Postgres. What is the philosophical reason that Rails wants to drop and recreate databases during the testing? It would seem to me that "pg_dump -c" (the "clean" dump option, similar to mysqldump''s --add-drop-tables ) would suffice when
2006 Feb 14
0
Skilled API consultant required - preferablywith Salesforce.com intergration
Because it's a new service without much traction and I need something now and also because this will be a fairly large project and as such I don't want to use a third party service to collect a 'fee'. Dean > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Dovid Bender > Sent:
2004 Mar 10
0
Newbie: Samba Intergration into W2K Domain/ADS
Hello everyone. I humbly admit I need some direction. I have search newsgroups and the Samba help files, but I must be missing something or just not getting it. I am comfortable witrh Samba in a small workgroup environment, I feel like a fish out of water when trying to intergrate Samba into a W2K Domain/Active Directory environment. While I consider myself technical, I've never had to manage
2012 Jun 22
4
Uniroot error message with in intergration
Dear all I am trying to calculate the value of n using uniroot. Here is the message I am having: <<< Error in uniroot(integ, lower = 0, upper = 1000, n) : 'interval' must be a vector of length 2 >>> Please would you be able to give me an indication on why I am having this error message. Many thanks EXAMPLE BELOW: ## t = statistics test from t -distribution
2006 Jun 09
2
Timzones, UTC, and to_xml()
Does anyone know a good way to hook into the AR to_xml() method to allow for adjusting datetimes to a user''s timezone? Basically I want a user to be able dump all their data before cancelling an account. I store all datetime info as UTC as per the recommendations of Jamis Buck and Scott Barron in the Rails Recipe article "Dealing with Timezones". Come to think of it I bet
2006 May 03
1
asterisk intergration in third party web application
lo all, i'm quite new to asterisk, i've tested asterisk@home and decided to try and complete a little project. i'd like to make some kind of web integration of asterisk with a classic web board like invision/SFM/phpbb and so on.. The main idea is to let members of the board have an extension created in asterisk when they register or get promoted to a special members group. That