Files
dunlop-ember/spec/routing/app_routing_spec.rb
T
2017-12-21 11:36:52 +01:00

18 lines
405 B
Ruby

describe "app routing" do
routes { Dunlop::Ember::Engine.routes }
it 'has a root' do
expect(get: "/").to route_to(
controller: "dunlop/ember/application",
action: "ember_path"
)
end
it "works with dashes", type: :routing do
expect(get: "abc-def").to route_to(
controller: "dunlop/ember/application",
action: "ember_path",
rest: 'abc-def'
)
end
end