search for: fixture_replacement

Displaying 6 results from an estimated 6 matches for "fixture_replacement".

2007 Oct 16
12
Example for attr_accessible?
Is anyone out there writing specs to check attr_accessible fields? I had originally written my spec to check for allowing the desired fields, and then none of the other regular db fields. Unfortunately this isn''t satisfactory, because attr_protected could have been used instead, which of course wouldn''t prevent mass assignment to any whatever=(val) method. I''m thinking
2008 Jan 14
6
RSpec stories introduction
I have played a bit with RSpec specs and now want to check out stories. I note that there is no generator for rspec stories pre se (unless I managed to miss all references to one ) and that the only directory relating to stories added by installing rspec is ./stories itself. The documentation at rspec.info seems to presume a great deal of prior knowledge. What I am looking for is a guided tour
2007 Sep 26
10
How do I best setup data for Story Runner?
Just started looking at the Story Runner integration, and am converting a few Rails integration tests to get a feel for it. My integration tests relied on fixtures, and since my models have a significant amount of validation (and hence need valid data unless I save without validation), this has made setup easy. With stories however, I''m wondering what the recommended approach is.
2008 Jan 15
0
Problem with ruby-debug and rspec
...ically any command which should normally work like p, or pp, gets passed through to a method_missing. I''m kind of stumped on this one... any ideas? -rabble I''ve got the following plugins installed: active_record_base_without_table annotate_models asset_packager exception_logger fixture_replacement query_reviewer rspec rspec_on_rails spatial_adapter svn white_list will_paginate ym4r_gm and am using the following gems: GeoRuby-1.3.2 RedCloth-3.0.4 has_finder-0.1.5 json-1.1.1 mocha-0.5.5 oauth ruby-hmac-0.3.1 brickhouse:~/code/fireeagle-rails/core/trunk rabble$ spec spec/controllers/account_c...
2008 Jun 07
2
rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1
Hello again :) I''m trying to run rcov on my specs here but i''m getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux]
2008 Jan 23
5
Changing rspec directory structure
I''d like to change the rspec directory structure from /spec /model /controllers etc to /spec /unit /models /controllers /lib /functional /models /controllers etc. Basically the Jay Fields style of testing -- I want the unit tests to be run all the time on a continuous integration server, but the integration/functional and system tests to be run