rspec
Rspec doesn't fail this trivial code, even though it should
Controller: class FooController <开发者_如何学JAVA ApplicationController def create end end Controller spec:[详细]
2023-04-04 10:37 分类:问答How to test tabs through jasmine in a rails application?
In our rails application we have many tabs like Overview tab, Reports tab etc. how to get hold of those tabs开发者_高级运维 through jasmine?[详细]
2023-04-04 08:55 分类:问答RSpec approach to test XML and HTTP responses?
I have a RESTful site that uses both the XML and web responses (API and web site). Since there are a lot of pages, my current goal is setting up RSpec to simply request each of the pages in both data[详细]
2023-04-04 08:16 分类:问答RSpec should_receive macro that includes id of what needs to be tested
How can I write this so it passes without hardcoding 1. Chicken and the egg. @sender = Factory(:user) @receiver = Factory(:user)[详细]
2023-04-04 05:31 分类:问答Rails 3 file create getting permission denied error, using XP
I\'m working through Rails3inAction and cannot progress due t开发者_开发技巧o a permissions denied error.[详细]
2023-04-04 05:20 分类:问答With RSpec, is there a way to define a before(:each) for a describe block?
Right now my rpsec goes like this: describe Ability do before(:each) do end describe \'xxx\' do it \"should xxx\" do[详细]
2023-04-04 04:23 分类:问答Rails ActiveRecord trouble
Please help with ActiveRecord testing. Trying my first Rails 3.1.0 project. There I have model named \"Account\", described like:[详细]
2023-04-04 03:46 分类:问答Test method call in the constructor
I have the following code 开发者_开发知识库class SomeClass def initialize(opts) if opts[:should_load][详细]
2023-04-04 02:51 分类:问答How to make has_many :through association with fixtures?
I can\'t use factory_girl because I\'m testing sunspot and need real database. Edit: nope. It can works with sunspot. I\'m wrong.[详细]
2023-04-04 02:35 分类:问答Testing memoization
I have an expensive method called calculate_total. I need a method called total that will return the result of calculate_total. Subsequent calls to total should return the previous result of calculate[详细]
2023-04-04 01:18 分类:问答