Sha256: e64f0d1b8b41f7c601d8a848e7dfe42c582abe25507d49d15d8d6f3c61ddc779

Contents?: true

Size: 381 Bytes

Versions: 12

Compression:

Stored size: 381 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', "spec_helper")

describe "When generating URLs," do
  
  describe "a route with a Regexp path" do
    
    it "should not generate" do
      Merb::Router.prepare do
        match(%r[/hello/world]).name(:regexp)
      end
      
      lambda { url(:regexp) }.should raise_error(Merb::Router::GenerationError)
    end
    
  end
  
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
merb-core-1.1.3 spec/public/router/generation/other_spec.rb
merb-core-1.1.3 spec10/public/router/generation/other_spec.rb
merb-core-1.1.2 spec/public/router/generation/other_spec.rb
merb-core-1.1.2 spec10/public/router/generation/other_spec.rb
merb-core-1.1.1 spec/public/router/generation/other_spec.rb
merb-core-1.1.1 spec10/public/router/generation/other_spec.rb
merb-core-1.1.0 spec10/public/router/generation/other_spec.rb
merb-core-1.1.0 spec/public/router/generation/other_spec.rb
merb-core-1.1.0.rc1 spec10/public/router/generation/other_spec.rb
merb-core-1.1.0.rc1 spec/public/router/generation/other_spec.rb
merb-core-1.1.0.pre spec/public/router/generation/other_spec.rb
merb-core-1.1.0.pre spec10/public/router/generation/other_spec.rb