Refactor goal_spec.rb