Sha256: 61deed1a5f528e86705012fc0f9af1315559b7e9277e323d9902eeb39a0cff2f

Contents?: true

Size: 665 Bytes

Versions: 5

Compression:

Stored size: 665 Bytes

Contents

require 'spec_helper'

include CommonwealthVlrEngine::InstitutionsHelperBehavior

# set this helper to return true so AZ links are rendered
def should_render_inst_az?
  true
end

describe 'Institutions#index view' do #, js: true do

  before { visit institutions_path }

  # this is really a test for CommonwealthVlrEngine::Controller#search_action_path
  describe 'search_action_path' do

    before do
      within 'div.item_az_links' do
        click_link('B')
      end
    end

    it 'should have the correct path in the Start Over link' do
      within ('#startOverLink') do
        expect(page.html).to include('/institutions')
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 spec/features/institutions/index_spec.rb
commonwealth-vlr-engine-0.0.4 spec/features/institutions/index_spec.rb
commonwealth-vlr-engine-0.0.3 spec/features/institutions/index_spec.rb
commonwealth-vlr-engine-0.0.2 spec/features/institutions/index_spec.rb
commonwealth-vlr-engine-0.0.1 spec/features/institutions/index_spec.rb