Sha256: 37234d3c509321d54e54b2d8c9ce357cf0b3d911c89595f115bae4122e9299f4

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 Bytes

Contents

require "spec_helper"

describe ActiveMetadata::StreamController do

  describe "routing" do

    before(:each) { @routes = ActiveMetadata::Engine.routes }

    it "recognizes and generate :model_name/:model_id/:field_name/stream" do
      { :get => "/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.6.4 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.3 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.2 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.1 spec/routing/active_metadata/stream_controller_routing_spec.rb
active_metadata-0.6.0 spec/routing/active_metadata/stream_controller_routing_spec.rb