Sha256: 25ff0154667bf1290d1f2e623d2f4f23e3e7b2a9057c6554488657ae6ce753cb
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' describe Triangular do describe ".parse" do it "should return a Solid" do stl_string = File.open("#{File.dirname(__FILE__)}/fixtures/y-axis-spacer.stl").read result = Triangular.parse(stl_string) result.should be_a Solid end end describe ".parse_file" do it "should return a Solid" do input = File.open(File.expand_path("#{File.dirname(__FILE__)}/fixtures/y-axis-spacer.stl")).read result = Triangular.parse_file(File.expand_path("#{File.dirname(__FILE__)}/fixtures/y-axis-spacer.stl")) result.should be_a Solid result.to_s.should == input end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
triangular-0.0.2 | spec/triangular_spec.rb |
triangular-0.0.1 | spec/triangular_spec.rb |