Sha256: f2157af9e200c09aa32748d4586dd7f71ae4feb14f1d18793deac761ca3dc166

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

RSpec.describe TTY::Spinner, "#job" do
  it "adds and executes job" do
    spinner = TTY::Spinner.new("[:spinner] :title")
    called = []
    work = proc { |sp| called << sp }
    spinner.job(&work)

    spinner.execute_job

    expect(called).to eq([spinner])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
planter-cli-3.0.7 lib/tty-spinner/spec/unit/job_spec.rb
planter-cli-3.0.5 lib/tty-spinner/spec/unit/job_spec.rb
planter-cli-3.0.4 lib/tty-spinner/spec/unit/job_spec.rb
planter-cli-3.0.3 lib/tty-spinner/spec/unit/job_spec.rb
planter-cli-3.0.2 lib/tty-spinner/spec/unit/job_spec.rb