Controller: class FooController <开发者_如何学JAVA ApplicationController def create end end Controller spec:
In our rails application we have many tabs like Overview tab, Reports tab etc. how to get hold of those tabs开发者_高级运维 through jasmine?
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
How can I write this so it passes without hardcoding 1. Chicken and the egg. @sender = Factory(:user) @receiver = Factory(:user)
I\'m working through Rails3inAction and cannot progress due t开发者_开发技巧o a permissions denied error.
Right now my rpsec goes like this: describe Ability do before(:each) do end describe \'xxx\' do it \"should xxx\" do
Please help with ActiveRecord testing. Trying my first Rails 3.1.0 project. There I have model named \"Account\", described like:
I have the following code 开发者_开发知识库class SomeClass def initialize(opts) if opts[:should_load]
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.
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