Skip to content

Commit

Permalink
Cleanup for #265
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Dec 21, 2015
1 parent b23ce76 commit 5196e5f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/integration/migration/postgres_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@
ENV['PATH'] = ''
end

it "raises MigrationError on create" do
-> { Lotus::Model::Migrator.create }.must_raise Lotus::Model::MigrationError
end

after do
ENV['PATH'] = @original_path
end

it "raises MigrationError on create" do
exception = -> { Lotus::Model::Migrator.create }.must_raise Lotus::Model::MigrationError
exception.message.must_equal "No such file or directory - createdb"
end
end
end

Expand Down

0 comments on commit 5196e5f

Please sign in to comment.