similar to: Flexible Fixtures patch -- anyone have an offline copy?

Displaying 20 results from an estimated 6000 matches similar to: "Flexible Fixtures patch -- anyone have an offline copy?"

2005 Dec 17
10
need some tips for applying patches
I am working with a legacy database that does not always follow the conventions for table names, primary key and foreign key column names, and join table names. This is no problem in my application code because Rails allows me to override the defaults. However it is making unit testing next to impossible because fixtures will still try and insert data into the wrong tables. Changing the
2006 Jan 12
10
uninitialized constant error
Hi Everyone, I''m a newbie to Rails, and I just finished going through the cookbook tutorial. I''m now trying to build my own application, and I''m trying to add more inputs to the edit view to modify data in other tables. Below is the controller code where I am having trouble. PartsLocation is another table (like Part) in the database, and that is the line where
2005 Dec 15
3
Fixtures and table name
Is there a way to use table name other than the default or to turn it around have multiple fixture files associated to the same table. Here''s my use case: I have multiple unit test classes that all work with the same model class and hence the same database table. However, for each test class I want the data to be in a different state. So I''d like to have something like class
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
2006 Jul 13
0
Loading different fixtures?
I''m starting to write some rather intricate billing logic, the test data for which will almost certainly overwhelm my standard set of test fixtures, leading to a test maintenance nightmare. I''d like to be able to specify that some test classes load their fixtures from a different location, but I can''t seem to get it to work. I did see this post from last December:
2006 Sep 18
2
Mocha + Selenium-on-rails loading problem ?
Hello All, I need to stub two class methods before a selenium call. The .rsel is : require ''mocha'' SalesConfigWork.stubs(:load_work_data) SalesConfigWork.stubs(:delete_work_data) setup :fixtures => :sales_config_works open "/" The Selenium test runner result is : undefined method `stubs'' for SalesConfigWork:Class Extracted source (around line *#0*):
2006 Jul 19
1
OT: firewall settings for svn and gems
Hello all, I realize this is off-topic for purely rails. My net admin has installed a new firewall, and is now implementing tight lockdown of net access. Thusly, I have lost svn and gems downoads (and plugins as well I believe) until I can give him specifics on what to "allow" for these. Can someone tell me what protocols/content-types/suffixes should be allowed on the firewall to
2006 Apr 06
2
how we can GET and POST values
hi all how we can do get and post value. i made one form and in this form their is two field loginname and password.and when i click on submit button than i t should verify from database and than the next page will arrive .how i can do that. how i can post value and than get it from that from and check .plese tell me yhis all in rubyon rails. hope for reply bye
2006 May 09
2
load fixtures
I''m finally getting beyond using basic test fixtures, and a few questions have popped up. Has anyone found ways to do these? 1. Use a test fixture that is named differently from its table name? We''d like to have more than one possible fixture per table. (Or perhaps use test fixtures named similarly but in different directories.) 2. Load a test fixture for one test method only
2005 Dec 14
0
Fwd: Logger bug in 0.14.3 ?
Hello All, I am top-posting this in hopes of increasing the visibility. This ticket has not been touched : Default Logger instance has no formatting <http://dev.rubyonrails.org/ticket/3144> For my installation, this is a BIG problem in my production logging !! For now the workaround below is working, and the double-declaration warnings of loading ''logger.rb'' twice are
2010 May 06
5
Bundler for Rails 3 Engine
Hello All, My google-fu did not find this answer : How do I configure a Rails-3 Engine so that the engine''s Gemfile is integrated with the parent-Rails-app''s bundle? Thanks Peter Fitzgibbons (847) 859-9550 Email: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org IM GTalk: peter.fitzgibbons IM AOL: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- You
2007 Apr 17
3
using rake db:fixtures:load with rspec fixtures
Hi, I''m new to rspec. I have some fixtures in /spec/fixtures. If they were in /test/fixtures they could be loaded with rake db:fixtures:load. Is there any way other than a symlink to load my rspec fixtures into the database with rake? Or, can I cause rspec to load the fixtures from /test/fixtures? Thanks, Paul
2006 Jul 10
1
rake db:fixtures:load FIXTURES=xyz
I am attempting to do selective fixture loading against my test database. When I run rake db:fixtures:load FIXTURES=DataSetInfo I get no output. (A full trace is below). I''m trying to figure out why nothing happens. 1) Does the command above attempt to operate against my test database? 2) DataSetInfo is the name of my table and the name of my yml file I generated these YAML
2005 Oct 31
2
Cascading Comboboxen and GO button ?
Hello all, I have two comboboxen, comboA is popultaed when :controller/list is retrieved first time. When comboA is selected, I want to auto-populate comboB (modelB belongs_to modelA). The population of tableC (modelC belongs_to modelB and belongs_to modelA) should not populate until a "GO" button is clicked (link_to with submit). Help? I need an example of how to filter the post
2011 Dec 25
1
Fixtures vs Fixture class, what is the intended purpose?
Hello, i am trying to fix the code for fixtures in rails because it is buggy and internal variable names are confusing, could somebody please explain to me what is the intended purpose of Fixture and Fixtures classes respectively? For example, why do we need both `Fixtures.initialize`and `Fixture.initialize`? They both "initialize" a single fixture, and in fact `Fixture.initialize`
2006 Mar 20
6
Rails and Offline processing
How are you guys handling threads or server processes that have to, for example, process the data in your application on a periodic basis? Cron jobs can do it and then run on the database. But, are there ways to launch threads within the rails application itself. I have heard of WebBrick ways, but I am working with lighttpd, fastcgi? (textdrive if you are really interested).
2011 Aug 10
1
How to stop Rspec loading my Cucumber fixtures
I have a bunch of fixtures designed to populate the database for my Cucumber integration tests. But at this stage I want my database to be empty when using Rspec. So, I moved the fixtures from `/spec/fixtures` to `features/support/fixtures`, and updated `features/support/env.rb` to read: Fixtures.reset_cache fixtures_folder = File.join(RAILS_ROOT, ''features'',
2018 Feb 09
2
Re: Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)
On Thu, Feb 08, 2018 at 06:44:43PM +0100, Florian Haas wrote: > On Thu, Feb 8, 2018 at 1:07 PM, David Hildenbrand <david@redhat.com> wrote: > > We should certainly document what I have summaries here properly at a > > central palce! > > Please review the three edits I've submitted to the wiki: > https://www.linux-kvm.org/page/Special:Contributions/Fghaas >
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
2007 Aug 08
1
Transactional fixtures not working as expected
Hi! I am quite new to BDD and I just wrote my first tests. Suddenly I received unexpected results because in a model test I load only users-fixtures but when the views-fixtures in which I load the posts-fixtures, are run before this model-test, the posts-fixtures are loaded too. I test for example if there is one record in the posts-table after creating one post. But when there are fixtures