Skip to content

Commit

Permalink
Simplifying a test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdblue committed Apr 8, 2012
1 parent c76557a commit e460166
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions spec/repo_spec.rb
Expand Up @@ -11,14 +11,9 @@
end

it "will complain about already existing repositories" do
path = link_test_repo
begin
expect { Svn::Repo.create(test_repo_path) }.to raise_error(
ArgumentError, /existing repository/
)
ensure
unlink_test_repo( path )
end
expect { Svn::Repo.create(test_repo_path) }.to raise_error(
ArgumentError, /existing repository/
)
end

it "will not overwrite an existing path" do
Expand Down

0 comments on commit e460166

Please sign in to comment.