[Rails] Re: How to copy views from development db to test db while running rake ?
There is one possible solution which can be done. That is write a script
that creates the views and keep it in your fixtures folder .Later call
this particular file in the corresponding test files .
`bash #{RAILS_ROOT}/test/fixtures/YOURFILENAME.sh
#{ActiveRecord::Base.configurations[RAILS_ENV]['username']}/#{ActiveRecord::Base.configurations[RAILS_ENV]['password']}`
This when added in the test controller the script will be executed and
the view will be created .This is bit a crude method though.
There is one more solution to this problem where in we can extend the
rake class and modify the lib. But i need to explore more inorder to
implement this.
Regards ,
Karthik
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home