Sha256: 51aeddfd593dfff7dafb48f4350baa5198b2d845005b0f7f2b3dc72abde60440
Contents?: true
Size: 696 Bytes
Versions: 8
Compression:
Stored size: 696 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'myna_bird' require 'spec' require 'spec/autorun' module ShouldAndShouldNotConvert def it_should_convert(from, to_hash) to = to_hash[:to] it "should convert '#{from}' to '#{to}'" do MynaBird.convert(from) == to end end def it_should_not_convert(from) it "should raise MalformedEmailException when attempting to convert '#{from}'" do lambda { MynaBird.convert(from) }.should raise_error(MynaBird::MalformedEmailException) end end end Spec::Runner.configure do |config| config.extend(ShouldAndShouldNotConvert) end
Version data entries
8 entries across 8 versions & 1 rubygems