e x p r e s s i c a

ruby on rails, business and technicalities

Archive for the ‘tests’ Category

Well, its a natural feel to get amazed out of every other delighted feature provided by RubyonRails and so appreciating it before actually talking about the feature in every second post. This line is for those people who have published that the worst thing about rails is that every rails  [ Read More ]

To use your migrations for preparing test database create a file testdb.rake in the directory lib/tasks. Now add the following code in the lib/tasks/testdb.rake file… module Rake module TaskManager def redefine_task(task_class, args, &block) task_name, deps = resolve_args(args) task_name = task_class.scope_name(@scope, task_name) deps = [deps] unless deps.respond_to?(:to_ary) deps = deps.collect {|d|  [ Read More ]