Sha256: c50b4e17538a32d0b1c8a10afd7937078f5f25c69bff933afdf417bea993b130

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

describe MD2 do
  subject { MD2.new(md2_file("pilot")) }
  
  it "should have frames.first.vertices.size == header.vertex_count" do
    subject.frames.first.vertices.size.should == subject.header.vertex_count
  end
  
  it "should not contain null characters" do
    subject.frames.first.name.should_not =~ /#{Regexp::escape ?\0.chr}/
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
md2-1.0.0 spec/lib/md2/frame_spec.rb