spec/configuration_spec.rb in git_handler-0.2.1 vs spec/configuration_spec.rb in git_handler-0.2.2

- old
+ new

@@ -5,7 +5,19 @@ config = GitHandler::Configuration.new config.user.should eq('git') config.home_path.should eq('/home/git') config.repos_path.should eq('/home/git/repositories') config.log_path.should eq('/home/git/access.log') + config.raise_errors.should be_true + config.log.should be_true + end + + it 'should disable error checks' do + config = GitHandler::Configuration.new(:raise_errors => false) + config.raise_errors.should be_false + end + + it 'should disable logger' do + config = GitHandler::Configuration.new(:log => false) + config.log.should be_false end end \ No newline at end of file