update tutorial.rb and tutorial_spec.rb
fix log conflict