spec/spec_helper.rb in myna_bird-0.2.11 vs spec/spec_helper.rb in myna_bird-0.2.12
- old
+ new
@@ -3,11 +3,11 @@
require 'myna_bird'
require 'rspec'
module ShouldAndShouldNotConvert
def it_should_convert(from, to_hash)
- to = to_hash[:to]
+ to = to_hash[:to]
it "should convert '#{from}' to '#{to}'" do
MynaBird.convert(from).should == to
end
end
@@ -20,6 +20,9 @@
end
end
RSpec.configure do |config|
config.extend(ShouldAndShouldNotConvert)
+ config.after do
+ MynaBird.reset_avoided_domains
+ end
end