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
Hi Namrata,
I recently ran into the same problem as well. The trick was to do
something like:
response.should have_rjs(some_arguments)
The 'some_arguments' threw me off for a while but I believe you
need :chained_replace_html.
I wrote a little piece on it here:
http://www.rubytutorials.net
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 important
I think I did not express myself clear enough. The problem is that in
my spec I can not get the 'post' and 'get' methods to correctly
contact(by lack of a better word) the corresponding actions. I
believe this has to do with the fact that I use a :path_prefix.
So I would like this:
>it "G
> script/generate rspec_scaffold "admin/users"
>
> it created the specs with the controller name is "admin_user" instead
> of "admin/user" which I think should be correct. So I had to go
> through all the rspec generated files and change the _ to /
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)