spec/spec_helper.rb in myna_bird-0.2.7 vs spec/spec_helper.rb in myna_bird-0.2.8
- old
+ new
@@ -1,10 +1,9 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'myna_bird'
-require 'spec'
-require 'spec/autorun'
+require 'rspec'
module ShouldAndShouldNotConvert
def it_should_convert(from, to_hash)
to = to_hash[:to]
it "should convert '#{from}' to '#{to}'" do
@@ -19,8 +18,8 @@
}.should raise_error(MynaBird::MalformedEmailException)
end
end
end
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.extend(ShouldAndShouldNotConvert)
end