require File.join(File.dirname(__FILE__), %w[.. spec_helper]) include FFI describe Generator::Struct do it_should_behave_like 'All specs' before :all do @node = generate_xml_wrap_from('structs') end it 'should properly generate the layout of a FFI::Struct class' do Generator::Struct.new(:node => (@node / 'class')[0]).to_s.should == < (@node / 'class')[1]).to_s.should == < (@node / 'class')[2]).to_s.should == < (@node / 'class')[3]).to_s.should == < (@node / 'class')[0]).to_s.should == <