[rspec-users] How to stub a has_many relationship in Rails 2.3.5

2010-03-24 Thread Ben Fyvie
configure_dependency_for_has_many method that calls: "#{reflection.primary_key_name} = \#{record.#{reflection.name}.send(:owner_quoted_id)}" Any help would be greatly appreciated! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] adding to the callbacks that rspec-rails adds

2010-02-16 Thread Ben Fyvie
the app fails because it doesn't load test unit. So my question is where can I put this code so that it will always be included when running rspec? Thanks! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforg

Re: [rspec-users] Problem with should_not when passing a multipleargs to a matcher

2010-01-07 Thread Ben Fyvie
any" If this is indeed what you are suggesting, I think this would be great! Not only does it add the functionality we are looking for but the method names are self documenting and much easier to understand what functionality to expect from each one. Ben Fyvie _

[rspec-users] Problem with should_not when passing a multiple args to a matcher

2010-01-06 Thread Ben Fyvie
xception really should be raised if you try to use "should_not" in combination with passing a collection to a matcher. At the very least there needs to be some documentation to inform RSpec users that tests will not always fail as they might expect when using "should_not" in combination with a matcher that accepts multiple args. 2. If this is not desired behavior then of course we need a fix. I apologize if this has been brought up previously; I did as much searching on this issue as possible. Thanks in advance! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Missing method implementation_backtrace

2008-11-20 Thread Ben Fyvie
s method is for and don't really care that it is gone; however, Netbeans 6.5 does care that it is gone and is not able to run tests without it. As a temporary band-aid I have added the method back locally. I was wondering if someone could enlighten me as to why the method was removed? Than

Re: [rspec-users] return code question

2008-08-13 Thread Ben Fyvie
and not the results of the command. Whenever a test fails the return code of "1" causes our build to break and therefore nobody even knows a test is failing until we notice that the build server is no longer updating on regular intervals. Ben Fyvie -Original Message- From: [

[rspec-users] return code question

2008-08-12 Thread Ben Fyvie
/models -f html:public/rspec_test_results/model_test_results.html" failed on buildnexus.champ.net Thanks! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users