Sha256: 31f0d332b3e6f8fb36f24f9fad01b4f41f557b0a797d19fed92985a56b95af10
Contents?: true
Size: 691 Bytes
Versions: 6
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class BuoysLoaderTest < ActiveSupport::TestCase test '.buoy_files' do assert_equal Buoys::Loader.buoy_files.size, 2 assert Buoys::Loader.buoy_files.include?(Rails.root.join('config', 'buoys', 'buoys.rb').to_s) assert Buoys::Loader.buoy_files.include?(Rails.root.join('config', 'buoys', 'breadcrumb.rb').to_s) end test '.buoys' do Buoys::Loader.load_buoys_files actual_keys = [] expected_keys = %i(account books show_books about history help) expected_keys.each do |key| actual_keys << key if Buoys::Loader.buoys.keys.include?(key) end assert_equal actual_keys, expected_keys end end
Version data entries
6 entries across 6 versions & 1 rubygems