Re: [rspec-users] Has anything changed in config.include syntax in 2.6.0?

2011-05-06 Thread Szymon Nowak
Looks like it's fixed on master.___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] when mocking, does it scan the method being tested for outside calls?

2011-05-06 Thread S Ahmed
Say I want to test this method: def modify_user_status(user_id) .. .. user = User.find(user_id) .. .. end Now could I mock the call to User.find()? I'm just trying to understand, when I run the test, and say I mocked the call to User.find, then rspec realizes this and replaces

[rspec-users] Has anything changed in config.include syntax in 2.6.0?

2011-05-06 Thread Szymon Nowak
Hey, I've got Integration::AuthenticationHelpers module in /support/integration/authentication_helpers.rb file. It uses some Capybara methods like "visit" etc. I include it using config.include Integration::AuthenticationHelpers, :type => :request In 2.5.x it works fine, in 2.6.0.rc4 it cause

[rspec-users] Am I speccing it wrong?

2011-05-06 Thread nbenes
I consider myself an intermediate-to-advanced rubyist and rails programmer. I've embraced TDD but sometimes wonder if I'm just doing it wrong. I feel like it can take me longer to get the specs done then should be necessary. I'll give a very specific example from a project I was working on last

[rspec-users] Re-executing rspec tests in existing JRuby container

2011-05-06 Thread Nathan Voxland
I have a JRuby Servlet environment very much like the "Parse Once, Eval Many Times on Servlet" example at http://kenai.com/projects/jruby/pages/RedBridgeServletExamples. What I am trying to do is execute an rspec test by hitting a URL mapped to my JRuby servlet. I get an expected error the first

[rspec-users] Best way to test validates_acceptance_of

2011-05-06 Thread Erik Lindblom
Hello, I am trying to write a test to make sure that the property validates_acceptance_of is present on a model. In my exploration, I can't seem to make a test that fails when this property is absent, then passes when added. Any guidance would be appreciated! ~Erik L. ___

[rspec-users] rspec-2.6.0.rc6 is released!

2011-05-06 Thread David Chelimsky
We're doing one more release candidate to update rspec-rails to work with rails-3.1.0.beta1. This will hopefully be the last release candidate, with a final release coming in just a few days. ### rspec-rails-2.6.0.rc6 full changelog: http://github.com/rspec/rspec-rails/compare/v2.6.0.rc4...v2.