Sha256: 4178f5c8d5375f8e1e9f91ba914de21935f2532fa481341f647abb9852c8e46f

Contents?: true

Size: 357 Bytes

Versions: 18

Compression:

Stored size: 357 Bytes

Contents

require File.join(File.dirname(__FILE__), 'compat')
require 'lib/usher'

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

describe "Usher (for rails 2.2) 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

18 entries across 18 versions & 2 rubygems

Version Path
joshbuddy-usher-0.4.10 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.4.11 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.4.5 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.4.6 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.4.7 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.4.8 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.5.1 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.5.2 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.5.3 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.5.4 spec/private/rails2_2/path_spec.rb
joshbuddy-usher-0.5.6 spec/private/rails2_2/path_spec.rb
usher-0.5.6 spec/private/rails2_2/path_spec.rb
usher-0.5.5 spec/private/rails2_2/path_spec.rb
usher-0.5.4 spec/private/rails2_2/path_spec.rb
usher-0.5.3 spec/private/rails2_2/path_spec.rb
usher-0.5.2 spec/private/rails2_2/path_spec.rb
usher-0.5.1 spec/private/rails2_2/path_spec.rb
usher-0.4.8 spec/private/rails2_2/path_spec.rb