summaryrefslogtreecommitdiffstats
path: root/spec/eina_list_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-01 21:57:51 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-01 21:57:51 +0200
commit384be4b3aacbb84801f2cf585ec4ecc97d975730 (patch)
treee80f803f3c8514dd97da84186fc2a57d3d83ce18 /spec/eina_list_spec.rb
parentd0b20b515e55dad3328191984bce5c898193446d (diff)
downloadffi-efl-384be4b3aacbb84801f2cf585ec4ecc97d975730.zip
ffi-efl-384be4b3aacbb84801f2cf585ec4ecc97d975730.tar.gz
specs : use == instead of eql
Diffstat (limited to 'spec/eina_list_spec.rb')
-rw-r--r--spec/eina_list_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/eina_list_spec.rb b/spec/eina_list_spec.rb
index 74f89c5..66e65c8 100644
--- a/spec/eina_list_spec.rb
+++ b/spec/eina_list_spec.rb
@@ -8,10 +8,10 @@ describe Efl::EinaList do
#
before(:all) {
REinaList = Efl::EinaList::REinaList
- Efl::Eina.init.should eql 1
+ Efl::Eina.init.should == 1
}
after(:all) {
- Efl::Eina.shutdown.should eql 0
+ Efl::Eina.shutdown.should == 0
}
#
it "should append prepend and fetch" do
@@ -25,7 +25,7 @@ describe Efl::EinaList do
l << d4
l.unshift d1
0.upto 3 do |i|
- l.nth(i).read_string.should eql "D#{i}"
+ l.nth(i).read_string.should == "D#{i}"
end
l.each { |p| p.read_string.empty?.should be_false }
l.free
@@ -60,9 +60,9 @@ describe Efl::EinaList do
l << d4
l.unshift d1
ary = Array.from_eina_list l
- ary.length.should eql 4
+ ary.length.should == 4
0.upto 3 do |i|
- ary[i].read_string.should eql "D#{i}"
+ ary[i].read_string.should == "D#{i}"
end
l.free
end
@@ -78,9 +78,9 @@ describe Efl::EinaList do
l << d4
l.unshift d1
ary = Array.from_eina_list l.to_ptr
- ary.length.should eql 4
+ ary.length.should == 4
0.upto 3 do |i|
- ary[i].read_string.should eql "D#{i}"
+ ary[i].read_string.should == "D#{i}"
end
l.free
end
@@ -93,7 +93,7 @@ describe Efl::EinaList do
a << ::FFI::MemoryPointer.from_string("D3")
l = REinaList.new a
0.upto 3 do |i|
- l.nth(i).read_string.should eql "D#{i}"
+ l.nth(i).read_string.should == "D#{i}"
end
l.free
end