Looks like it's fixed on master.___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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
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
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
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
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.
___
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.