This PR adds an executable you can use in your Rails app. Just run bundle binstubs magic_test and it will allow you run bin/magic test test/system/basics_test.rb or if you are using RSpec you can use bin/magic spec spec/system/basics_spec.rb and that will run a Magic Test using RSpec.
You can also run bin/magic --help to see details about the options.
This is going to reduce quite a few keystrokes over time for the developer, allowing them to not have to write the verbose MAGIC_TEST=1 rails test test/system/basics_test.rb and type the environment variable each time, since it is passed implicitly in the executable command.
This PR adds an executable you can use in your Rails app. Just run
bundle binstubs magic_test
and it will allow you runbin/magic test test/system/basics_test.rb
or if you are using RSpec you can usebin/magic spec spec/system/basics_spec.rb
and that will run a Magic Test using RSpec.You can also run
bin/magic --help
to see details about the options.This is going to reduce quite a few keystrokes over time for the developer, allowing them to not have to write the verbose
MAGIC_TEST=1 rails test test/system/basics_test.rb
and type the environment variable each time, since it is passed implicitly in the executable command.