Sha256: 6a65ee0f8668f4abb7ac4905f4274643abc69437a14ad3cc082881d9e823487e

Contents?: true

Size: 869 Bytes

Versions: 4

Compression:

Stored size: 869 Bytes

Contents

require ::File.expand_path('../spec_helper.rb', __FILE__)

describe FnordMetric::Dashboard do

  before(:each) do
  end

  it "should remember it's title" do
    dashboard = FnordMetric::Dashboard.new(:title => 'My Foobar Dashboard')
    dashboard.title.should == 'My Foobar Dashboard'
  end

  it "should build a token" do
    dashboard = FnordMetric::Dashboard.new(:title => 'My!F00bar-.Dash_board'){ |dash| }
    dashboard.token.should == 'MyF00barDash_board'
  end

  it "should add a widget" do
    pending("fix this")
    #dashboard = FnordMetric::Dashboard.new(:title => 'My!F00bar-.Dash_board'){ |dash| }
    #FnordMetric.metric(:my_metric, :sum => :my_field)
    #idget = FnordMetric.widget(:my_widget, :metrics => :my_metric, :title => "My Widget", :type => :timeline)
    #dashboard.add_widget(widget)
    #dashboard.widgets.first.should == widget
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fnordmetric-0.5.3 spec/dashboard_spec.rb
fnordmetric-0.5.2 spec/dashboard_spec.rb
fnordmetric-0.5.1 spec/dashboard_spec.rb
fnordmetric-0.5.0 spec/dashboard_spec.rb