rspec-rails
RSpec controller test: How do I check @organization.destroy is being called?
I thought it might be like:开发者_高级运维 let(:organization) { mock_model(Organization).as_null_object }[详细]
2023-03-16 18:40 分类:问答Zentest - How to stop automatic testing when red
I am trying to configure autotest so that when I run my test suite and I have a failing test, autotest stops testing and waits for me to make a change before testing again. With my current configurati[详细]
2023-03-13 20:56 分类:问答Unit testing a controller method that is called via a custom route
How do I unit test a controller method that is called via a custom route? The relevant route is: /auth/:provider/callback(.:format) {:controller=>\"sessions\", :action=>\"create\"}[详细]
2023-03-12 18:03 分类:问答jasmine setup error rails 3.1 ActiveSupport::Concern (NameError)
I am trying to setup the Jasmine Gem as described on their website. After running: bundle exec jasmine init[详细]
2023-03-11 14:15 分类:问答Changing rspec version during development
I\'m a newbie in Ruby 开发者_StackOverflow社区on Rails. I just started with the RoR Tutorial from Michael Hartl (klick). I\'m at 5.2.1 where we learn about Integration_tests.[详细]
2023-03-10 06:03 分类:问答How to spec operations that rely on Memcached?
We have a Rails application that we test with RSpec. We want to spec operations that rely on Memcached. What is the best practice to do so?[详细]
2023-03-05 00:21 分类:问答Rspec with inherited_resources is redirecting instead of rendering on failed update
I am new to both rspec and inherited_resources.I have a simple resource, Contact, that has a name field.The controller has no special functionality.[详细]
2023-03-04 07:08 分类:问答factory girl and nested_attributes in rails 3
I have 2 models, one which accepts attributes for the other and I\'m trying to find a clever way to use Factory girl to setup the data for both.[详细]
2023-02-27 03:14 分类:问答Testing with RSpec: setting locale based on first subdomain
I\'m new to RSpec, and I can\'t find out how to test the following: In my application controller (in a Rails 3 app), I set the locale in a before filter, like so[详细]
2023-02-27 02:40 分类:问答What's the Difference between the Rspec and Rspec-Rails Gem?
I have the following in my GEMFILE: group :development do gem开发者_如何学Go \'rspec-rails\' gem \'annotate-models\'[详细]
2023-02-25 15:36 分类:问答
加载中,请稍侯......