Sha256: 51cfe6f8f3016bc3178708f93d6d354523b80eee8a4a615679ad27f258f97f55

Contents?: true

Size: 680 Bytes

Versions: 5

Compression:

Stored size: 680 Bytes

Contents

require "spec_helper"

module Worthwhile
  describe "routing" do

    describe "Classify concerns" do
      routes { Worthwhile::Engine.routes }
      it "routes to #new" do
        expect(new_classify_concern_path).to eq '/classify_concerns/new'
        expect(get("/classify_concerns/new")).to route_to("worthwhile/classify_concerns#new")
      end
    end

    describe "generic work" do
      routes { Rails.application.routes }
      it 'routes to #new' do
        expect(new_curation_concern_generic_work_path).to eq '/concern/generic_works/new'
        expect(get("/concern/generic_works/new")).to route_to("curation_concern/generic_works#new")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
worthwhile-0.1.2 spec/routing/worthwhile/routes_spec.rb
worthwhile-0.1.1 spec/routing/worthwhile/routes_spec.rb
worthwhile-0.1.0 spec/routing/worthwhile/routes_spec.rb
worthwhile-0.0.3 spec/routing/worthwhile/routes_spec.rb
worthwhile-0.0.2 spec/routing/worthwhile/routes_spec.rb