Sha256: 793e1539f5582bea21651dd9e5a2816103a5d8b8bd5a120b57c0fe791af49583

Contents?: true

Size: 479 Bytes

Versions: 36

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Howzit::Task do
  subject(:task) do
    Howzit::Task.new({ type: :run,
                       title: 'List Directory',
                       action: 'ls &> /dev/null' })
  end

  describe ".new" do
    it "makes a new task instance" do
      expect(task).to be_a Howzit::Task
    end
  end

  describe ".to_s" do
    it "outputs title string" do
      expect(task.to_s).to match(/List Directory/)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
howzit-2.1.18 spec/task_spec.rb
howzit-2.1.16 spec/task_spec.rb
howzit-2.1.15 spec/task_spec.rb
howzit-2.1.14 spec/task_spec.rb
howzit-2.1.13 spec/task_spec.rb
howzit-2.1.12 spec/task_spec.rb
howzit-2.1.10 spec/task_spec.rb
howzit-2.1.9 spec/task_spec.rb
howzit-2.1.8 spec/task_spec.rb
howzit-2.1.7 spec/task_spec.rb
howzit-2.1.6 spec/task_spec.rb
howzit-2.1.5 spec/task_spec.rb
howzit-2.1.4 spec/task_spec.rb
howzit-2.1.3 spec/task_spec.rb
howzit-2.1.2 spec/task_spec.rb
howzit-2.1.1 spec/task_spec.rb
howzit-2.1.0 spec/task_spec.rb
howzit-2.0.34 spec/task_spec.rb
howzit-2.0.33 spec/task_spec.rb
howzit-2.0.32 spec/task_spec.rb