Sha256: f4d2a681115a11d59ccae114388200590710afdeb18abd997c8179b53911f6a8
Contents?: true
Size: 819 Bytes
Versions: 4
Compression:
Stored size: 819 Bytes
Contents
require 'spec_helper' require 'perl/ext/object' class Object def perl_interpreter @_perl end end describe Object do after(:each) do perl_interpreter.stop end describe "#Perl" do it "should instance an interpreter" do perl_interpreter.should be_nil Perl("$_") perl_interpreter.should_not be_nil perl_interpreter.should be_kind_of(Perl::Interpreter) end # it "should run the provided code" do # ret = capture_stdout_descriptor do # Perl("print \"hi there\";") # end # ret.should == "hi there" # end # # it "should run the provided code block" do # ret = capture_stdout_descriptor do # Perl do # run "print \"hi there\";" # end # end # ret.should == "hi there" # end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-perl-04.01.2011.2 | spec/ext/object_spec.rb |
ruby-perl-04.01.2011.1 | spec/ext/object_spec.rb |
ruby-perl-04.01.2011 | spec/ext/object_spec.rb |
ruby-perl-0.99.15j | spec/ext/object_spec.rb |