```ruby
require File.expand_path("helper", File.dirname(__FILE__))

prepare do
  FileUtils.rm_rf(TARGET)
end

# monk init NAME
scope do
  test "fail if the target working directory is not empty" do
    FileUtils.mkdir(TARGET)
    FileUtils.touch(TARGET + "/foo")

    out, err = monk("init #{TARGET}")
    assert out.match(/error/)
  end

  test "create a skeleton app in the target directory" do
    out, err = monk("init #{TARGET}")
    assert out.match(/initialized.* #{TARGET}/)
  end

  test "be able to pull from a url instead of a known skeleton" do
    out, err = monk("init #{TARGET} --skeleton http://github.com/monkrb/skeleton.git")
    assert out.match(/initialized.* #{TARGET}/)
  end
end
```

Verify that an rvmrc is created properly.
user
```ruby
require File.expand_path("helper", File.dirname(__FILE__))

prepare do
  FileUtils.rm_rf(TARGET)
end

# monk init NAME
scope do
  test "fail if the target working directory is not empty" do
    FileUtils.mkdir(TARGET)
    FileUtils.touch(TARGET + "/foo")

    out, err = monk("init #{TARGET}")
    assert out.match(/error/)
  end

  test "create a skeleton app in the target directory" do
    out, err = monk("init #{TARGET}")
    assert out.match(/initialized.* #{TARGET}/)
  end

  test "be able to pull from a url instead of a known skeleton" do
    out, err = monk("init #{TARGET} --skeleton http://github.com/monkrb/skeleton.git")
    assert out.match(/initialized.* #{TARGET}/)
  end

  test "create a correct rvmrc given a directory" do
    monk("init #{TARGET}")

    rvmrc = File.read(File.join(TARGET, ".rvmrc"))
    assert rvmrc[RUBY_VERSION]
    assert rvmrc[File.basename(TARGET)]
  end

  test "create a correct rvmrc given the current directory" do
    FileUtils.mkdir(TARGET)
    FileUtils.cd(TARGET) { monk("init .") }

    rvmrc = File.read(File.join(TARGET, ".rvmrc"))
    assert rvmrc[RUBY_VERSION]
    assert rvmrc[File.basename(TARGET)]
  end
end

```
assistant