Sha256: e587237cb4c378badc1702816f74177b00da9c657e068171ef15b1eac4fea1c6

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

require "spec_helper"

describe ActiveMetadata::StreamController do

  describe "routing" do

    before(:each) { @routes = Rails.application.routes }

    it "recognizes and generate :model_name/:model_id/:field_name/stream" do
      { :get => "/active_metadata/model/12/field/stream" }.should route_to(:controller => 'active_metadata/stream', :action => 'index', :model_name => 'model', :model_id => '12',
                                                           :field_name =>'field')
    end


  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_metadata-0.7.0 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.9 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.7 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.6 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.5 spec/routing/active_metadata/stream_controller_routing_spec.rb