Permalink
Browse files

Add better explanation of #push! and #pop! to README

  • Loading branch information...
mbklein committed Nov 11, 2011
1 parent d297a1a commit 4d63f585994c125f8173026dc360a9cd0290a1e4
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -118,7 +118,9 @@ act like `lambda`, making the following two assignments equivalent to the above:
client deferred! { |c| RestClient::Resource.new(c.url) }
end
-`push!` and `pop!` methods allow you to temporarily override some or all of your configuration values
+`push!` and `pop!` methods allow you to temporarily override some or all of your configuration values. This can be
+useful in spec tests where you need to change values but don't want to worry about messing up tests that depend
+on the same global configuration object.
config.github.url
=> "http://www.github.com/mbklein/confstruct"

0 comments on commit 4d63f58

Please sign in to comment.