levaleureux / dr_spec

rspec like for dragonruby
The Unlicense
0 stars 2 forks source link

Automatically load all specs under `spec/**/*_spec` on macOS and Linux. #50

Open iMacTia opened 11 months ago

iMacTia commented 11 months ago

Summary

This change will make dr_spec automatically require all spec files in spec/**/*_spec.rb, which is a handy feature from rspec. Since DR does not allow to list files in a directory (I experimented with $gtk.list_files, but it doesn't work), the current implementation uses a system call to ls. This command is available on macOS and Linux, but not on Windows.

Unfortunately I don't have access to a Windows machine to make this work there as well, but hopefully a future contributor will help adjusting the implementation.

The README has also been updated, indicating this is only supported no Linux and macOS.