Sha256: 5c07851c955f632e1fb90dc1363353d654e5f32cdec91aadf60013b5c1f3ac0f

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

require 'test_helper'

describe 'routes' do
  include AcceptanceHelper

  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.5 test/routes_test.rb
ceo-0.1.4 test/routes_test.rb
ceo-0.1.3 test/routes_test.rb