What\'s the best way to add tests to a code who h开发者_运维技巧as been in production for some time? I imagine that RSpec is not the best solution given that its goal is for TDD.It\'s not ideal to wri
I\'m working through Michael Hartl\'s excellent tutorial on Rails, but I am having trouble with exercise 7 in Chapter 11.
Rails 2.3.8, bundler 1.0.9. I keep getting the error: /Users/dwalseth/.rvm/gems/ruby-1.8.7-p330@rails2/gems/bundler-1.0.9/lib/bundler/source.rb:72:in fetch\': undefined methods开发者_开发问答pec\' f
I\'m using the garb gem to pull some basic stats, like pageviews, from Google Analytics. Everything\'s working correctly but I can\'t figure out the best way to test my API calls. Here\'s a paired dow
I have been going through Michael Hartl\'s tutorial http://railstutorial.org/ and for the most part it has been a huge help in getting started with Rails. The book is very focused on TDD, which is gre
I have two models: User and Lesson. I only want lessons to be assigned to users that are admins. What is the best way to ensure this? I am currently attempting to create a custom validator like so:
I\'m trying to figure out a good practice approach of when I should use Background over a Before hook.
This is probably basic stuff, but I really made my homework looking it up. I still can´t find the solution.
I\'ve got some problems specing a validation of my model, which acts as a state machine (gem state_machine 0.9.4). Via the stat_machine, I defined a validation for bikes in the state delivered:
I\'m trying to understand the need for Steak.I get that its like Cucumber, except that you can use pure ruby instead of mapping your english language specs to ruby like in Cucumber,