refactor given_castle

This commit is contained in:
muratayusuke
2013-05-30 17:38:06 +00:00
parent 76fcf5d0b7
commit 97fe1686f5
2 changed files with 5 additions and 4 deletions

View File

@@ -16,7 +16,8 @@ RSpec.configure do |config|
homesick.stub(:say_status)
end
def given_castle(name, path=name, subdirs=[])
def given_castle(path, subdirs=[])
name = Pathname.new(path).basename
castles.directory(path) do |castle|
Dir.chdir(castle) do
system "git init >/dev/null 2>&1"