I have the following RSpec (1.3.0) task defined in my Rakefile: require \'spec/rake/spectask\' Spec::Rake::SpecTask.new开发者_JS百科(:spec) do |spec|
Please, help me. I\'m confused. I know how to write state-driven behavior of model, but I don\'t know what should I write in specs...
How can I test the send_data method i开发者_开发技巧n Rails?First of all look at the source of the send_data method http://api.rubyonrails.org/classes/ActionController/DataStreaming.html#method-i-send
I might be missing something basic here, but I\'m stumped on this error: model code: class CachedStat < ActiveRecord::Base
I want to get autotest to run Steak acceptance tests whenever one of my rails app\'s relevant files is changed. After studying Rspec\'s and Cucumber\'s own autotest configs, I\'m trying the following
I\'m in the process of upgrading an app to开发者_开发知识库 Rails 3/Rspec 2.I see that stubbing a view helper method has changed in Rspec 2.It looks like
I\'m in Chapter 10 of the Foundation Rails 2 book. We\'re working with RSpec. We\'re testing the \'index\' action of the \'PluginsController\'.
I want to automatically kick off a build whenever a file changes. I\'ve used autospec (RSpec)开发者_运维百科 in Ruby and loved that.
Here my issue: I\'ve got two models: class User < ActiveRecord::Base # Setup accessible (or protected) attributes for your model
For my RSpec tests I would to automatically associate data files with each test. To clarify, if my tests each require an xml file as input data and then some xpath statements to validate the responses