Sha256: 0dfaa319be31625a1a50e72f4da28364de42ee141b464a4079f887df6be051e5
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
require 'spec_helper' describe 'routes for Attach' do it 'routes /upload to create action' do post('/upload').should route_to('media_magick/attach#create') end it 'routes /remove to destroy action' do delete('/remove').should route_to('media_magick/attach#destroy') end it 'routes /update_priority to update_priority action' do put('/update_priority').should route_to('media_magick/attach#update_priority') end it 'routes /recreate_versions to recreate_versions action' do put('/recreate_versions').should route_to('media_magick/attach#recreate_versions') end it 'routes recreate_versions_path to recreate_versions action' do put(recreate_versions_path).should route_to('media_magick/attach#recreate_versions') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
media_magick-0.4.1 | spec/routing/attach_spec.rb |
media_magick-0.4.0 | spec/routing/attach_spec.rb |