Sha256: f0fd35222b669ff2b73accf163dadb5a1036a91a2d3282c9339fc4578e33ba7b

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

require "spec_helper"

describe Que::Web::Viewmodels::Dashboard do
  let(:dashboard_stats) {
    {
      total: 10,
      running: 6,
      failing: 2,
      scheduled: 2
    }
  }
  let(:subject) { Que::Web::Viewmodels::Dashboard.new(dashboard_stats) }

  it 'passes through values' do
    _(subject.scheduled).must_equal 2
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
que-web-0.10.0 spec/viewmodels/dashboard_spec.rb
que-web-0.9.4 spec/viewmodels/dashboard_spec.rb
que-web-0.9.3 spec/viewmodels/dashboard_spec.rb
que-web-0.9.2 spec/viewmodels/dashboard_spec.rb
que-web-0.9.1 spec/viewmodels/dashboard_spec.rb
que-web-0.9.0 spec/viewmodels/dashboard_spec.rb