spec/binary/template_spec.rb in ronin-support-0.5.0 vs spec/binary/template_spec.rb in ronin-support-0.5.1
- old
+ new
@@ -395,6 +395,20 @@
it "should return the pack format String" do
subject.to_s.should == "LZ*"
end
end
+
+ describe "#inspect" do
+ let(:template) { described_class.new [:uint32, :string] }
+
+ subject { template.inspect }
+
+ it "should inspect the class" do
+ subject.should include(described_class.name)
+ end
+
+ it "should inspect the template" do
+ subject.should include(template.fields.inspect)
+ end
+ end
end