Sha256: f2b95a8db70279f2569377fcab76677031f93d0a5d54589a42c420bcc73dc7b2

Contents?: true

Size: 348 Bytes

Versions: 15

Compression:

Stored size: 348 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

15 entries across 15 versions & 1 rubygems

Version Path
que-web-0.7.2 spec/viewmodels/dashboard_spec.rb
que-web-0.7.1 spec/viewmodels/dashboard_spec.rb
que-web-0.7.0 spec/viewmodels/dashboard_spec.rb
que-web-0.6.3 spec/viewmodels/dashboard_spec.rb
que-web-0.6.2 spec/viewmodels/dashboard_spec.rb
que-web-0.6.1 spec/viewmodels/dashboard_spec.rb
que-web-0.6.0 spec/viewmodels/dashboard_spec.rb
que-web-0.5.0 spec/viewmodels/dashboard_spec.rb
que-web-0.4.0 spec/viewmodels/dashboard_spec.rb
que-web-0.3.2 spec/viewmodels/dashboard_spec.rb
que-web-0.3.1 spec/viewmodels/dashboard_spec.rb
que-web-0.3.0 spec/viewmodels/dashboard_spec.rb
que-web-0.2.2 spec/viewmodels/dashboard_spec.rb
que-web-0.2.1 spec/viewmodels/dashboard_spec.rb
que-web-0.2.0 spec/viewmodels/dashboard_spec.rb