Sha256: be0d592a97288c967464c0ff66cb732928d568dba757630f39cd8d5cc2a597a3
Contents?: true
Size: 740 Bytes
Versions: 9
Compression:
Stored size: 740 Bytes
Contents
require File.join(File.dirname(__FILE__), '../test_helper') describe HammerCLI::Output::Definition do let(:definition) { HammerCLI::Output::Definition.new } let(:last_field) { definition.fields[-1] } let(:field_count) { definition.fields.length } it "should be able to add field" do definition.fields << Fields::Field.new field_count.must_equal 1 end it "append should allow to add data from another definition" do another_def = HammerCLI::Output::Definition.new another_def.fields << Fields::Field.new another_def.fields << Fields::Field.new definition.append another_def.fields field_count.must_equal another_def.fields.length definition.fields.must_equal another_def.fields end end
Version data entries
9 entries across 9 versions & 1 rubygems