Skip to content

Commit

Permalink
Rename #util_capture helper to #capture_stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Mar 28, 2009
1 parent 013e8f6 commit c698dda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/helpers.rb
Expand Up @@ -38,7 +38,7 @@ def ignore_logs!
Integrity.config[:log] = "/tmp/integrity.test.log"
end

def util_capture
def capture_stdout
output = StringIO.new
$stdout = output
yield
Expand Down
4 changes: 2 additions & 2 deletions test/unit/migrations_test.rb
Expand Up @@ -28,7 +28,7 @@ def load_initial_migration_fixture
end

test "upgrading a pre migration database" do
util_capture { Integrity.migrate_db }
capture_stdout { Integrity.migrate_db }

current_migrations.should == ["initial", "add_commits"]
assert table_exists?("integrity_projects")
Expand All @@ -40,7 +40,7 @@ def load_initial_migration_fixture
test "migrating data from initial to add_commits migration" do
load_initial_migration_fixture

util_capture { Integrity.migrate_db }
capture_stdout { Integrity.migrate_db }
current_migrations.should == ["initial", "add_commits"]

sinatra = Project.first(:name => "Sinatra")
Expand Down

0 comments on commit c698dda

Please sign in to comment.