Sha256: d6766be36c4c4523e84a891e5cfeadaf3f5864d6b8918708e1ebbfb1fc545f3e

Contents?: true

Size: 458 Bytes

Versions: 11

Compression:

Stored size: 458 Bytes

Contents

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

route_set = Usher::Interface.for(:rails23)

describe "Usher (for rails 2.3) route adding" do

  before(:each) do
    route_set.reset!
  end

  it "shouldn't allow routes without a controller to be added" do
    proc { route_set.add_route('/bad/route') }.should raise_error
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
usher-0.6.8 spec/private/rails2_3/path_spec.rb
usher-0.6.7 spec/private/rails2_3/path_spec.rb
usher-0.6.6 spec/private/rails2_3/path_spec.rb
usher-0.6.5 spec/private/rails2_3/path_spec.rb
usher-0.6.4 spec/private/rails2_3/path_spec.rb
usher-0.6.3 spec/private/rails2_3/path_spec.rb
usher-0.6.2 spec/private/rails2_3/path_spec.rb
usher-0.6.1 spec/private/rails2_3/path_spec.rb
usher-0.6.0 spec/private/rails2_3/path_spec.rb
usher-0.5.13 spec/private/rails2_3/path_spec.rb
usher-0.5.12 spec/private/rails2_3/path_spec.rb