I have this example: # GET New context \"on get to new\" do it \"should assign cardset\" do @profile.cardsets.expects(:build).once.returns(Factory.stub(:cardset))
I\'m trying to add some commit hooks to my git repo. I want to leverage Rspec and create commit message specs that will run each time I commit. I have figured out how to run rspec outside of the \'spe
I\'m trying to do some scripted GUI testing in Windows using Ruby.I\'m leveraging the g开发者_如何学JAVAuidance of a pragprog book and I\'m hitting a bit of a snag.I\'ve factored out some code to help
I have a Picture model in my app that uses Paperclip to attach an image to it. The model: class Picture < ActiveRecord::Base
I\'m using cucumber, rails3, rspec2 and autotest. I\'m trying to figure out why my features are infinitely looping. I suspect it some file being changed during the tests but I\'m not sure which one. I
attempting to use rspec2, rails3, and autotest. When running autotest I get stuck with the following:
I have a Profiles Controller that acts_as_authentic with AuthLogic and I am trying to test this action:
I currently working on a project which uses Spree Cart and which has hence forced me to switch from testing with RSpec to testing with Shoulda.
I am trying to specify in my RSpec tests that my controller should use current_user.projects.find() instead of Project.find() I am using the Mocha mocking framework and was trying something like this:
I have this controller code: # GET /cardsets/1 def show @cardset = current_user.cardsets.find_by_id(params[:id])