Gazler/githug

View on GitHub
levels/rebase.rb

Summary

Maintainability
A
0 mins
Test Coverage
difficulty 2

description "We are using a git rebase workflow and the feature branch is ready to go into master. Let's rebase the feature branch onto our master branch."

setup do
  init_from_level
  system "git branch -m master"
end

solution do
  return repo.commits('feature').last.id_abbrev != "ed0fdcf" &&
    repo.commits("feature").map(&:message) == ['add feature','add content','init commit']
end

hint do
  puts "You want to research the `git rebase` command"
end