spec/fluent_spec.rb in fluent-0.1.0 vs spec/fluent_spec.rb in fluent-0.2.0
- old
+ new
@@ -3,7 +3,38 @@
describe Fluent do
it 'should return version information' do
Fluent.version.should == "Fluent v#{Fluent::VERSION}"
end
-
+
+ it 'should set the element level wait default to 5' do
+ Fluent.instance_variable_set('@element_wait', nil)
+ Fluent.element_level_wait.should == 5
+ end
+
+ it 'should allow the element level wait to be set' do
+ Fluent.instance_variable_set('@element_wait', 10)
+ Fluent.element_level_wait.should == 10
+ end
+
+ it 'should be able to set an element level wait value' do
+ Fluent.element_level_wait = 10
+ value = Fluent.instance_variable_get('@element_wait')
+ value.should == 10
+ end
+
+ it 'should set the page level wait default to 15' do
+ Fluent.instance_variable_set('@page_wait', nil)
+ Fluent.page_level_wait.should == 15
+ end
+
+ it 'should allow the page level wait to be set' do
+ Fluent.instance_variable_set('@page_wait', 10)
+ Fluent.page_level_wait.should == 10
+ end
+
+ it 'should be able to set a page level wait value' do
+ Fluent.page_level_wait = 30
+ value = Fluent.instance_variable_get('@page_wait')
+ value.should == 30
+ end
end
\ No newline at end of file