diff options
Diffstat (limited to 'spec/ecore_spec.rb')
-rw-r--r-- | spec/ecore_spec.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/spec/ecore_spec.rb b/spec/ecore_spec.rb index 96ece40..183e64c 100644 --- a/spec/ecore_spec.rb +++ b/spec/ecore_spec.rb @@ -3,26 +3,26 @@ # require 'e17/ecore' # -describe E17::ECORE do +describe E17::Ecore do # include E17 # it "should init" do - ECORE.init.should eql 1 - ECORE.init.should eql 2 - ECORE.init.should eql 3 + Ecore.init.should eql 1 + Ecore.init.should eql 2 + Ecore.init.should eql 3 end # it "should shutdown" do - ECORE.shutdown.should eql 2 - ECORE.shutdown.should eql 1 - ECORE.shutdown.should eql 0 + Ecore.shutdown.should eql 2 + Ecore.shutdown.should eql 1 + Ecore.shutdown.should eql 0 end # it "should run a single iteration of the mainloop" do - ECORE.init - ECORE.main_loop_iterate - ECORE.shutdown + Ecore.init + Ecore.main_loop_iterate + Ecore.shutdown end # it 'should write and read data from pipe' do @@ -32,13 +32,13 @@ describe E17::ECORE do buffer.read_string.should eql 'hello world' bytes.should eql 12 end - ECORE.init - pipe = ECORE::EcorePipe.new cb, data + Ecore.init + pipe = Ecore::EcorePipe.new cb, data pipe.write("hello world").should be_true - ECORE.main_loop_iterate + Ecore.main_loop_iterate pipe.read_close pipe.write_close pipe.del.address.should eql data.address - ECORE.shutdown + Ecore.shutdown end end |