Sha256: 8951203bc15312ee8817050f312b796eac39cf46ed710151416abf2614881b46

Contents?: true

Size: 610 Bytes

Versions: 3

Compression:

Stored size: 610 Bytes

Contents

require 'test_helper'
require 'resolvers/group'

module CanaryLabs
  module Resolvers
    class GroupTest < ActiveSupport::TestCase
      def test_participating
        resolver = Group.new ['admin_id', 'dev_id', 'qa_id', 'beta_lover_id']
        id_participating_pairs = {
          'admin_id' => true,
          'dev_id' => true,
          'qa_id' => true,
          'beta_lover_id' => true,
          'boring_customer_id' => false,
        }

        id_participating_pairs.each do |id, participating|
          assert_equal participating, resolver.participating?(id)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
canary_labs-0.4.0 test/resolvers/group_test.rb
canary_labs-0.3.0 test/resolvers/group_test.rb
canary_labs-0.2.0 test/resolvers/group_test.rb