Sha256: bdebf57c1e02201028cf56526a7bce10a4c5e4d097c66e6472211b80e6c5e0cb
Contents?: true
Size: 455 Bytes
Versions: 5
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true RSpec.shared_context 'with prepended view fixtures' do let(:view_fixtures_path) { 'spec/fixtures/views' } before do ApplicationController.prepend_view_path view_fixtures_path end after do view_paths = ApplicationController.view_paths.to_a view_paths.delete_if do |view_path| view_path.to_path.match?(/#{view_fixtures_path}$/) end ApplicationController.view_paths = view_paths end end
Version data entries
5 entries across 5 versions & 1 rubygems