Sha256: deab6dc1310ebecb4288c14683927b6b3c364b611ff2fc559e575efdff18795e

Contents?: true

Size: 458 Bytes

Versions: 30

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

describe TeamGroupStatistic do
  describe 'synchronization' do
    context 'sync with no data specified' do
      subject { -> { TeamGroupStatistic.sync } }

      it { is_expected.to change { TeamGroupStatistic.count }.by(2) }
      it { is_expected.to change { Team.count }.by(2) }
      it { is_expected.to change { Player.count }.by(4) }

      it { is_expected.to change { Synchronisable::Import.count }.by(8) }
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
synchronisable-1.3.1 spec/models/team_group_statistic_spec.rb
synchronisable-1.3.0 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.7 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.6 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.5 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.4 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.3 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.2 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.1 spec/models/team_group_statistic_spec.rb
synchronisable-1.2.0 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.9 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.8 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.7 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.6 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.5 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.4 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.3 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.2 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.1 spec/models/team_group_statistic_spec.rb
synchronisable-1.1.0 spec/models/team_group_statistic_spec.rb