Permalink
Browse files

minor changes to test and remove output

  • Loading branch information...
1 parent 940d7de commit 7d95487ebc6ac086648faea355e28524abb9fd52 @phoet phoet committed Mar 18, 2011
Showing with 4 additions and 2 deletions.
  1. +0 −1 lib/asin/configuration.rb
  2. +4 −1 spec/asin_spec.rb
@@ -39,7 +39,6 @@ def configure(options={})
if yml_path = options[:yaml] || options[:yml]
yml = File.open(yml_path) { |file| YAML.load(file) }
if block_given?
- puts yml
yield self, yml
else
yml.each do |key, value|
View
@@ -7,6 +7,10 @@
@key = ENV['ASIN_KEY']
puts "configure #{@secret} and #{@key} for this test"
end
+
+ after do
+ ASIN::Configuration.reset
+ end
context "configuration" do
it "should fail without secret and key" do
@@ -53,7 +57,6 @@
context "lookup and search" do
before do
- ASIN::Configuration.reset
@helper.configure :secret => @secret, :key => @key
end

0 comments on commit 7d95487

Please sign in to comment.