Sha256: b7104f547918a9f03e8f0a7b492f91afb8bf73a9aaeef4b985be0d91b52c759b

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

require_relative '__base__'
module Eucalypt
  class CLI < Thor
    using Colorize
    method_option :summarized, type: :boolean, default: false, aliases: '-s', desc: 'rspec -fd spec'
    desc "test", "Run all application tests".colorize(:grey)
    def test
      directory = File.expand_path('.')
      if Eucalypt.app? directory
        exec (options[:summarized] ? "rspec -fd spec" : "rspec spec")
      else
        Eucalypt::Error.wrong_directory
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eucalypt-0.1.3 lib/eucalypt/eucalypt-core/cli/test.rb
eucalypt-0.1.2 lib/eucalypt/eucalypt-core/cli/test.rb
eucalypt-0.1.1 lib/eucalypt/eucalypt-core/cli/test.rb
eucalypt-0.1.0 lib/eucalypt/eucalypt-core/cli/test.rb