Sha256: ad5138004e9adb0fcb068847fd6c057869846cb53dd4a583a18056b3e55982c5
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
require 'test_helper' describe 'routes' do include AcceptanceHelper it 'gets dashboard' do admin_exists_for? '/' end it 'gets styleguide' do admin_exists_for? '/styleguide' end describe 'apples' do def setup @apple = Apple.create(name: 'Granny Smith') end it 'index' do admin_exists_for? '/apples' end it 'new' do admin_exists_for? '/apples/new' end it 'show' do admin_exists_for? "/apples/#{@apple.id}" end it 'edit' do admin_exists_for? "/apples/#{@apple.id}/edit" end it 'should allow passing a block to resources' do admin_exists_for? "/apples/#{@apple.id}/other_route" end it 'should allow passing of options' do admin_exists_for? "/not_obvious/responds_with_200" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ceo-0.2.0 | test/routes_test.rb |