Displaying 3 results from an estimated 3 matches for "innovationfactori".
Did you mean:
innovationfactory
2007 Nov 02
5
RSpec, RESTful nested routes and :path_prefix
Dear list,
In the app we are making we have a rout something like this:
map.resources :projects do |projects|
projects.resources :pages, :controller
=>"Wiki::Pages", :path_prefix => "/projects/:project_id/
wiki", :name_prefix => "project_wiki_"
end
But I can''t get RSpec(I''m very new to it) to accept this. It keeps
throwing errors:
2008 Apr 25
0
Spec migrations?
Dear list,
I am in the process of writing on an app with is already running. I
need to create a couple of structural database changes for which I use
migrations. However I want to be absolutely sure I do not destroy any
existing data. So RSpec is the way to go! Or so I thought.
1. dropped the test database.
2. create the database.
3. migrate to the version just before the critical migration
2008 Jan 28
0
attachment_fu with fixtures
Dear list,
I can''t figure out how to use fixtures with attachment_fu. I know how
to use files with RSpec in my controllers,
BackgroundPhoto.create(:uploaded_data => fixture_file_upload("files/
some.zip", "application/x-zip")), but this does not work with
fixtures(obviously). More importantly I have no idea where to start...
Can someone shed some light on