Sha256: 905ea860852a4582a8e1f139e646543dea1d379d0db071aaa70fc077388a2441

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

require 'lib/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

5 entries across 5 versions & 1 rubygems

Version Path
joshbuddy-usher-0.0.2 spec/rails/path_spec.rb
joshbuddy-usher-0.0.3 spec/rails/path_spec.rb
joshbuddy-usher-0.1.0 spec/rails/path_spec.rb
joshbuddy-usher-0.1.1 spec/rails/path_spec.rb
joshbuddy-usher-0.1.2 spec/rails/path_spec.rb