method_spec.rb fixed