Permalink
Browse files

Fix unit test, this signal has no arguments

  • Loading branch information...
1 parent 62b60ba commit 379da658218554e3bf32b5bfccce87b0b8804144 @vkrause vkrause committed Sep 17, 2017
@@ -73,11 +73,11 @@ void TemplateParserEmailAddressRequesterAkonadiTest::shouldEmitSignal()
TemplateParserEmailAddressRequesterAkonadi w;
QSignalSpy spy(&w, &TemplateParser::TemplateParserEmailAddressRequesterBase::textChanged);
w.setText(QStringLiteral("foo"));
- QCOMPARE(spy.at(0).count(), 1);
+ QCOMPARE(spy.size(), 1);
w.clear();
- QCOMPARE(spy.at(1).count(), 1);
+ QCOMPARE(spy.size(), 2);
w.setText(QStringLiteral("foo"));
- QCOMPARE(spy.at(2).count(), 1);
+ QCOMPARE(spy.size(), 3);
}
QTEST_MAIN(TemplateParserEmailAddressRequesterAkonadiTest)

0 comments on commit 379da65

Please sign in to comment.