Sha256: 0d597608b3d43439afe7d493df6390d078b2b1b68671622f9ecfb456197fd257

Contents?: true

Size: 456 Bytes

Versions: 12

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe "ActionController::Routing::Routes" do
  before(:each) do
    map_subdomain(:www, nil) { |www| www.root :controller => "homes", :action => "show" }
  end
  
  it "should know a list of its reserved subdomains" do
    ActionController::Routing::Routes.reserved_subdomains.should == [ "www", "" ]
    ActionController::Routing::Routes.clear!
    ActionController::Routing::Routes.reserved_subdomains.should be_empty
  end
end

Version data entries

12 entries across 12 versions & 7 rubygems

Version Path
mataki-subdomain_routes-0.3.1 spec/routes_spec.rb
mholling-subdomain_routes-0.3.0 spec/routes_spec.rb
mholling-subdomain_routes-0.3.1 spec/routes_spec.rb
affinitylabs-subdomain_routes-0.3.1 spec/routes_spec.rb
goncalossilva-subdomain_routes-0.3.3.1 spec/routes_spec.rb
goncalossilva-subdomain_routes-0.3.3 spec/routes_spec.rb
ghazel-subdomain_routes-0.3.1.2 spec/routes_spec.rb
ghazel-subdomain_routes-0.3.1.1 spec/routes_spec.rb
mataki-subdomain_routes-0.3.3 spec/routes_spec.rb
mataki-subdomain_routes-0.3.2 spec/routes_spec.rb
projectdx-subdomain_routes-0.3.2 spec/routes_spec.rb
subdomain_routes-0.3.1 spec/routes_spec.rb