Sha256: f34c4792656dd4118a4005ca57141a2c3c59bc7819a5a13bfe48ed4f94a2ce0a
Contents?: true
Size: 1.07 KB
Versions: 13
Compression:
Stored size: 1.07 KB
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 build the correct token if the dashboard name contains whitespaces" 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
13 entries across 13 versions & 1 rubygems