Sha256: 84ecfcf56918eaa9134e59d450ac401c508733321824086b996ed5889f791a3c

Contents?: true

Size: 811 Bytes

Versions: 4

Compression:

Stored size: 811 Bytes

Contents

begin
  require File.dirname(__FILE__) + '/../../../../spec/spec_helper'
rescue LoadError
  puts "You need to install rspec in your base app"
  exit
end

plugin_spec_dir = File.dirname(__FILE__)
ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log")

ActionController::Routing::Routes.draw do |map|
  map.needs_subdomain '/needs_subdomain', :controller => "fu", :action => "awesome"
  map.no_subdomain '/no_subdomain', :controller => "fu", :action => "lame"
  map.needs_awesome '/needs_awesome', :controller => "fu", :action => "lame"
  
  map.resources :foos do |fu|
    fu.resources :bars
  end
  
  map.connect '/:controller/:action/:id'
end

class Paramed
  def initialize(param)
    @param = param
  end
  
  def to_param
    @param || "param"
  end
end

include ActionController::UrlWriter

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jcnetdev-subdomain-fu-0.0.2 spec/spec_helper.rb
jcnetdev-subdomain-fu-0.0.21 spec/spec_helper.rb
jcnetdev-subdomain-fu-0.0.22 spec/spec_helper.rb
mbleigh-subdomain-fu-0.0.2 spec/spec_helper.rb