spec/spec_helper.rb in rubypython-0.3.1 vs spec/spec_helper.rb in rubypython-0.3.2
- old
+ new
@@ -1,12 +1,12 @@
begin
- require 'spec'
+ require 'rspec'
require 'ffi'
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
gem 'rspec'
- require 'spec'
+ require 'rspec'
require 'ffi'
end
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rubypython'
@@ -27,25 +27,23 @@
}
AConvertedHash = Hash[*AHash.map do |k, v|
key = k.is_a?(Symbol)? k.to_s : k
[key,v]
end.flatten]
+
+ AProc = Proc.new { |a1, a2| a1 + a2 }
+
+ def self.a_method(a1, a2)
+ a1 + a2
+ end
+
+ AMethod = method(:a_method)
+
end
def run_python_command(cmd)
IO.popen("python -c '#{cmd}'") { |f| f.gets.chomp}
end
class RubyPython::RubyPyProxy
[:should, :should_not, :class].each { |m| reveal(m) }
end
-
-share_as :RubyPythonStartStop do
- before do
- RubyPython.start
- end
-
- after do
- RubyPython.stop
- end
-end
-