Sha256: 67e62802e8fcfd09261a9ee34270e50014d92ea66823d4ddd0de23920cde7f04

Contents?: true

Size: 526 Bytes

Versions: 24

Compression:

Stored size: 526 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Radiant::LegacyRoutes, :type => :helper do
  it "should warn about a deprecated route and pass through to the new route" do
    helper.should_receive(:warn)
    helper.should_receive(:admin_pages_url).and_return("http://test.host/admin/pages")
    helper.page_index_url.should == "http://test.host/admin/pages"
  end
  
  it "should warn about a removed route and return nil" do
    helper.should_receive(:warn)
    helper.clear_cache_url.should be_nil
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
radiant-rails3-0.1 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.2.4 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.2.2 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.2.1 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.2 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.9 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.8 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.7 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.6 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.5 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.4 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.3 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.2 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1.1 spec/lib/radiant/legacy_routes_spec.rb
radiantcms-couchrest_model-0.1 spec/lib/radiant/legacy_routes_spec.rb
radiant-0.7.2 spec/lib/radiant/legacy_routes_spec.rb
radiant-0.9.1 spec/lib/radiant/legacy_routes_spec.rb
radiant-0.8.2 spec/lib/radiant/legacy_routes_spec.rb
radiant-0.9.0.rc2 spec/lib/radiant/legacy_routes_spec.rb
radiant-rc-0.9.0 spec/lib/radiant/legacy_routes_spec.rb