spec/namespace_spec.rb in fnordmetric-0.5.3 vs spec/namespace_spec.rb in fnordmetric-0.5.4

- old
+ new

@@ -17,11 +17,16 @@ before(:each) do @namespace = FnordMetric::Namespace.new(:myns_213, :redis_prefix => "fnordmetric") end it "should create a new dashboard if a widget is added" do + @namespace.widget("MyFooDash", nil) + @namespace.dashboards.keys.should == ["MyFooDash"] + end + + it "should create a new dashboard if the dashboard-title contains whitespaces" do @namespace.widget("My Dash", nil) - @namespace.dashboards.keys.should == ["My Dash"] + @namespace.dashboards.keys.should == ["MyDash"] end it "should create a new dashboard if a widget is added and add the widget" it "should add widget to an existing dashboard" \ No newline at end of file