Sha256: 4fa53e57b464f257bd711d475b25e153c3a5d14f0a13df304e85f1cb72b2b3e0
Contents?: true
Size: 892 Bytes
Versions: 37
Compression:
Stored size: 892 Bytes
Contents
if RUBY_PLATFORM != 'opal' require 'volt/server/rack/component_paths' describe ComponentPaths do before do spec_app_root = File.join(File.dirname(__FILE__), "../../apps/file_loading") path_to_main = File.join(File.dirname(__FILE__), "../../apps/file_loading/app/main") @component_paths = ComponentPaths.new(spec_app_root) end it "should return the paths to all app folders" do match_count = 0 @component_paths.app_folders do |app_folder| if app_folder[/spec\/apps\/file_loading\/app$/] || app_folder[/spec\/apps\/file_loading\/vendor\/app$/] match_count += 1 end end expect(match_count).to eq(2) end it "should return the path to a component" do main_path = @component_paths.component_path('main') expect(main_path).to match(/spec\/apps\/file_loading\/app\/main$/) end end end
Version data entries
37 entries across 37 versions & 1 rubygems