Sha256: a22b540ef298bcda77175bbc0b4369a2988726fe039283bc592bfda754c1b619

Contents?: true

Size: 459 Bytes

Versions: 5

Compression:

Stored size: 459 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(: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

5 entries across 5 versions & 2 rubygems

Version Path
joshbuddy-usher-0.5.7 spec/private/rails2_2/path_spec.rb
usher-0.5.11 spec/private/rails2_2/path_spec.rb
usher-0.5.10 spec/private/rails2_2/path_spec.rb
usher-0.5.8 spec/private/rails2_2/path_spec.rb
usher-0.5.7 spec/private/rails2_2/path_spec.rb