Sha256: 6a742533cf4abbfab3e7061f31ca76c90657b4eb8b647bf6b1dec04260406004

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe MicroCms::ContentBlockController, type: :routing do
  routes { MicroCms::Engine.routes }

  describe 'routing' do
    it 'routes to #update via PUT' do
      expect(put: '/content_block/1').to route_to('micro_cms/content_block#update', path: '1')
    end

    it 'routes to #update via PATCH' do
      expect(patch: '/content_block/1').to route_to('micro_cms/content_block#update', path: '1')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
micro_cms-0.2.1 spec/routing/micro_cms/content_blocks_routing_spec.rb
micro_cms-0.2.0 spec/routing/micro_cms/content_blocks_routing_spec.rb
micro_cms-0.1.2 spec/routing/micro_cms/content_blocks_routing_spec.rb
micro_cms-0.1.1 spec/routing/micro_cms/content_blocks_routing_spec.rb
micro_cms-0.1.0 spec/routing/micro_cms/content_blocks_routing_spec.rb