Sha256: 202f67f22099101958a05159b7bccdac2b3358d4a2ae82f9c51e0af730f816a7

Contents?: true

Size: 761 Bytes

Versions: 7

Compression:

Stored size: 761 Bytes

Contents

require 'spec_helper'

describe 'routes for Attach' do
  it 'routes /upload to create action' do
    get('/upload').should route_to('media_magick/attach#create')
  end

  it 'routes /remove to destroy action' do
    get('/remove').should route_to('media_magick/attach#destroy')
  end

  it 'routes /update_priority to update_priority action' do
    get('/update_priority').should route_to('media_magick/attach#update_priority')
  end

  it 'routes /recreate_versions to recreate_versions action' do
    get('/recreate_versions').should route_to('media_magick/attach#recreate_versions')
  end

  it 'routes recreate_versions_path to recreate_versions action' do
    get(recreate_versions_path).should route_to('media_magick/attach#recreate_versions')
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
media_magick-0.3.3 spec/routing/attach_spec.rb
media_magick-0.3.2 spec/routing/attach_spec.rb
media_magick-0.3.0 spec/routing/attach_spec.rb
media_magick-0.2.0 spec/routing/attach_spec.rb
media_magick-0.1.1 spec/routing/attach_spec.rb
media_magick-0.1.0 spec/routing/attach_spec.rb
media_magick-0.0.1 spec/routing/attach_spec.rb