spec/base/configuration_spec.rb in iain-metric_fu-0.1.1 vs spec/base/configuration_spec.rb in iain-metric_fu-0.1.2

- old
+ new

@@ -181,10 +181,18 @@ end it 'should set @graph_marker_font_size to 10' do @config.instance_variable_get(:@graph_marker_font_size).should eql(10) end - + + it 'should set a lambda to @graph_options' do + @config.instance_variable_get(:@graph_options).should be_kind_of(Proc) + end + + it 'should have a lambda that accepts one parameter as graph' do + @config.instance_variable_get(:@graph_options).arity.should == 1 + end + describe 'if #rails? is true ' do before(:each) do @config.stub!(:rails?).and_return(true) end