Sha256: 382a77f6c432deded9357bb15ab50f6a058ebac6839b2f56cac759db97f9f2a3

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

require 'test_helper'

describe 'routes' do
  include TestHelper

  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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ceo-0.1.2 test/routes_test.rb
ceo-0.1.1 test/routes_test.rb
ceo-0.1.0 test/routes_test.rb