Permalink
Browse files

Rename reset_logging! => reset!

  • Loading branch information...
1 parent 3c0a80a commit 1637d8cd3277f15982731dc1ffb4e7081a720c3e @smtlaissezfaire committed Dec 28, 2009
@@ -11,8 +11,8 @@ def logging
@logging
end
- def reset_logging!
- @logging = nil
+ def reset!
+ @logging = nil
@explain_logging = nil
end
end
@@ -2,7 +2,7 @@
describe "Running a select query" do
before(:each) do
- EnhancedQueryAnalyzer.reset_logging!
+ EnhancedQueryAnalyzer.reset!
QueryLog.destroy_all
User.delete_all
end
@@ -2,7 +2,7 @@
describe EnhancedQueryAnalyzer do
before(:each) do
- EnhancedQueryAnalyzer.reset_logging!
+ EnhancedQueryAnalyzer.reset!
end
it "should have logging on by default" do
@@ -15,7 +15,7 @@
end
it "should be able to reset the logs" do
- EnhancedQueryAnalyzer.reset_logging!
+ EnhancedQueryAnalyzer.reset!
EnhancedQueryAnalyzer.logging.should be_true
end
@@ -28,9 +28,9 @@
EnhancedQueryAnalyzer.explain_logging.should be_true
end
- it "should reset explain_logging to false when reset_logging! is called" do
+ it "should reset explain_logging to false when reset! is called" do
EnhancedQueryAnalyzer.explain_logging = true
- EnhancedQueryAnalyzer.reset_logging!
+ EnhancedQueryAnalyzer.reset!
EnhancedQueryAnalyzer.explain_logging.should be_false
end
end

0 comments on commit 1637d8c

Please sign in to comment.