spec/models/match_spec.rb in synchronisable-0.0.2 vs spec/models/match_spec.rb in synchronisable-0.0.3
- old
+ new
@@ -5,16 +5,16 @@
context 'when has associations defined in Synchronizer' do
subject do
-> { Match.sync }
end
- it { should change { Match.count }.by(1) }
- it { should change { Team.count }.by(2) }
- it { should change { Player.count }.by(4) }
- it { should change { MatchPlayer.count }.by(4) }
+ it { is_expected.to change { Match.count }.by(1) }
+ it { is_expected.to change { Team.count }.by(2) }
+ it { is_expected.to change { Player.count }.by(4) }
+ it { is_expected.to change { MatchPlayer.count }.by(4) }
- it { should change { Synchronizable::Import.count }.by(11) }
+ it { is_expected.to change { Synchronisable::Import.count }.by(11) }
end
# TODO: Left here until :include option is implemented
#
# context 'when associations specified with :include option' do
@@ -28,14 +28,14 @@
# :team => :players
# }
# })
# end
- # it { should change { Match.count }.by(1) }
- # it { should change { Team.count }.by(2) }
- # it { should change { Player.count }.by(22) }
- # it { should change { MatchPlayer.count }.by(22) }
+ # it { is_expected.to change { Match.count }.by(1) }
+ # it { is_expected.to change { Team.count }.by(2) }
+ # it { is_expected.to change { Player.count }.by(22) }
+ # it { is_expected.to change { MatchPlayer.count }.by(22) }
- # it { should change { Synchronizable::Import.count }.by(47) }
+ # it { is_expected.to change { Synchronisable::Import.count }.by(47) }
# end
end
end