lib/retest/options.rb in retest-1.2.0 vs lib/retest/options.rb in retest-1.3.0.pre

- old
+ new

@@ -2,19 +2,10 @@ module Retest class Options include TTY::Option - RSPEC_COMMAND = "bundle exec rspec <test>" - RAILS_COMMAND = "bundle exec rails test <test>" - RAKE_COMMAND = "bundle exec rake test TEST=<test>" - RUBY_COMMAND = "bundle exec ruby <test>" - - ALL_RAKE_COMMAND = "bundle exec rake test" - ALL_RAILS_COMMAND = "bundle exec rails test" - ALL_RSPEC_COMMAND = "bundle exec rspec" - usage do program "retest" command nil @@ -85,25 +76,25 @@ desc "Print usage" end flag :rspec do long "--rspec" - desc "Shortcut for '#{RSPEC_COMMAND}'" + desc "Shortcut for a standard RSpec setup" end flag :rake do long "--rake" - desc "Shortcut for '#{RAKE_COMMAND}'" + desc "Shortcut for a standard Rake setup" end flag :rails do long "--rails" - desc "Shortcut for '#{RAILS_COMMAND}'" + desc "Shortcut for a standard Rails setup" end flag :ruby do long "--ruby" - desc "Shortcut for '#{RUBY_COMMAND}'" + desc "Shortcut for a Ruby project" end attr_reader :args def self.command(args) \ No newline at end of file