Revision 96e3fe2c
Added by Lucas Tolchinsky over 14 years ago
- ID 96e3fe2cc12097fd9daedea92056e59c5bf2d88d
test/functional/medias_controller_test.rb | ||
---|---|---|
put :update, { :commit => "Update", :id => media.id, :record => {:name => "other_media", :path => "http://www.vurbia.com"} }
|
||
media = Media.find_by_id(media.id)
|
||
assert media.name == "other_media"
|
||
assert media.path == "http://www.vurbia.com"
|
||
|
||
assert_redirected_to medias_path
|
||
end
|
Also available in: Unified diff
added assertion for updated path