/*
 * Copyright 2013 Canonical Ltd.
 *
 * This file is part of lomiri-ui-extras.
 *
 * ubuntu-ui-extras is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3.
 *
 * ubuntu-ui-extras is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// Qt
#include <QtCore/QDir>
#include <QtCore/QTemporaryFile>
#include <QtTest/QSignalSpy>
#include <QtTest/QtTest>

// local
#include "example-model.h"

class ExampleModelTests : public QObject
{
    Q_OBJECT

private:
    ExampleModel* model;

private Q_SLOTS:
    void init()
    {
        model = new ExampleModel;
    }

    void cleanup()
    {
        delete model;
    }

    void shouldHaveThreeItems()
    {
        QCOMPARE(model->rowCount(), 3);
    }

};

QTEST_MAIN(ExampleModelTests)
#include "tst_ExampleModelTests.moc"
