Sha256: 93ad79f359ab4d76c189bb78f5d28bfa96204b043b676495f8f9b145116048cc

Contents?: true

Size: 351 Bytes

Versions: 13

Compression:

Stored size: 351 Bytes

Contents

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

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

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

13 entries across 13 versions & 1 rubygems

Version Path
joshbuddy-usher-0.2.0 spec/rails/path_spec.rb
joshbuddy-usher-0.2.1 spec/rails/path_spec.rb
joshbuddy-usher-0.2.2 spec/rails/path_spec.rb
joshbuddy-usher-0.3.0 spec/rails/path_spec.rb
joshbuddy-usher-0.3.2 spec/rails/path_spec.rb
joshbuddy-usher-0.3.3 spec/rails/path_spec.rb
joshbuddy-usher-0.3.4 spec/rails/path_spec.rb
joshbuddy-usher-0.3.5 spec/rails/path_spec.rb
joshbuddy-usher-0.3.6 spec/rails/path_spec.rb
joshbuddy-usher-0.4.0 spec/rails/path_spec.rb
joshbuddy-usher-0.4.1 spec/private/rails/path_spec.rb
joshbuddy-usher-0.4.2 spec/private/rails/path_spec.rb
joshbuddy-usher-0.4.3 spec/private/rails/path_spec.rb