define([
    'jquery',
    'underscore',
    'models/galleryImage',
    'models/project'
  ],
  function(
    $,
    _,
    GalleryImage,
    Project
  ) {

    describe("Tests for galleryImage model", function() {
      var galleryImage;

      beforeEach(function() {
        galleryImage = new GalleryImage();
      });

      it("Can have default properties such as image and title", function() {
        expect(galleryImage.defaults.title).toBeDefined();
        expect(galleryImage.defaults.image).toBeDefined();
      });

      it("LifeTime shoud be called at the initialization", function() {
        spyOn(galleryImage, 'setLifeTime');
        galleryImage.initialize();
        expect(galleryImage.setLifeTime).toHaveBeenCalled();
      });
    });

    describe("Tests for project model", function() {
      var project;

      beforeEach(function() {
        project = new Project();
      });

      it("Can have default properties such as id, image, title and link", function() {
        expect(project.defaults.id).toBeDefined();
        expect(project.defaults.title).toBeDefined();
        expect(project.defaults.image).toBeDefined();
        expect(project.defaults.link).toBeDefined();
      });
    });
});

