spec/int_spec.rb in bindata-0.6.0 vs spec/int_spec.rb in bindata-0.7.0
- old
+ new
@@ -1,12 +1,12 @@
#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__)) + '/spec_common'
require 'bindata/int'
-context "All signed integers" do
- specify "should have a sensible value of zero" do
+describe "All signed integers" do
+ it "should have a sensible value of zero" do
[BinData::Int8,
BinData::Int16le,
BinData::Int16be,
BinData::Int32le,
BinData::Int32be,
@@ -14,11 +14,11 @@
BinData::Int64be].each do |klass|
klass.new.value.should eql(0)
end
end
- specify "should pass these tests" do
+ it "should pass these tests" do
[
[1, true, BinData::Int8],
[2, false, BinData::Int16le],
[2, true, BinData::Int16be],
[4, false, BinData::Int32le],
@@ -31,12 +31,12 @@
end
end
end
end
-context "All unsigned integers" do
- specify "should have a sensible value of zero" do
+describe "All unsigned integers" do
+ it "should have a sensible value of zero" do
[BinData::Uint8,
BinData::Uint16le,
BinData::Uint16be,
BinData::Uint32le,
BinData::Uint32be,
@@ -44,10 +44,10 @@
BinData::Uint64be].each do |klass|
klass.new.value.should eql(0)
end
end
- specify "should pass these tests" do
+ it "should pass these tests" do
[
[1, true, BinData::Uint8],
[2, false, BinData::Uint16le],
[2, true, BinData::Uint16be],
[4, false, BinData::Uint32le],