Sha256: 772713b9c88b5e41c347c78f020912b752fe198945d62a45de93c5a1698a17d7

Contents?: true

Size: 479 Bytes

Versions: 13

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'

describe 'Routes for Collections: ' do

  it 'Route to display form for adding item to a collection' do
    expect( get('collections/add_member_form') ).to(
      route_to(controller: 'curate/collections',
               action: 'add_member_form')
    )
  end

  it 'Route to add item to a collection' do
    expect( put('collections/add_member') ).to(
      route_to(controller: 'curate/collections',
               action: 'add_member')
    )
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 spec/routing/collections_routing_spec.rb
curate-0.6.5 spec/routing/collections_routing_spec.rb
curate-0.6.4 spec/routing/collections_routing_spec.rb
curate-0.6.3 spec/routing/collections_routing_spec.rb
curate-0.6.1 spec/routing/collections_routing_spec.rb
curate-0.6.0 spec/routing/collections_routing_spec.rb
curate-0.5.6 spec/routing/collections_routing_spec.rb
curate-0.5.5 spec/routing/collections_routing_spec.rb
curate-0.5.4 spec/routing/collections_routing_spec.rb
curate-0.5.2 spec/routing/collections_routing_spec.rb
curate-0.5.1 spec/routing/collections_routing_spec.rb
curate-0.5.0 spec/routing/collections_routing_spec.rb
curate-0.4.2 spec/routing/collections_routing_spec.rb