Sha256: 1be687b372be10ced87b9fedef8970338b9bd2aeff67a15fd3c95a459a53baa3

Contents?: true

Size: 471 Bytes

Versions: 7

Compression:

Stored size: 471 Bytes

Contents

require_relative '__base__'
module Eucalypt
  class CLI < Thor
    using Colorize
    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

7 entries across 7 versions & 1 rubygems

Version Path
eucalypt-0.3.3 lib/eucalypt/core/cli/test.rb
eucalypt-0.3.2 lib/eucalypt/core/cli/test.rb
eucalypt-0.3.1 lib/eucalypt/core/cli/test.rb
eucalypt-0.3.0 lib/eucalypt/core/cli/test.rb
eucalypt-0.2.2 lib/eucalypt/eucalypt-core/cli/test.rb
eucalypt-0.2.1 lib/eucalypt/eucalypt-core/cli/test.rb
eucalypt-0.2.0 lib/eucalypt/eucalypt-core/cli/test.rb