Sha256: 5a0ecf7b60d7666c3774d7a0536c65ed38ebf50abba73b98d38b46860d86c83d

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. test_helper])

Testy.testing 'Groupie::Group' do
  test 'can be serialized and loaded through YAML' do |t|
    require 'yaml'

    g = Groupie::Group.new 'group'
    g.add %w[buy flowers]
    g2 = YAML.load(g.to_yaml)
    g2.add %w[buy candy]
    t.check 'default value works for new entries',
      :expect => 1,
      :actual => g2.count('candy')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
groupie-0.1.0 test/groupie/group_test.rb