describe("a Meteorite", function() {
  var meteorite

  beforeEach(function() {
    meteorite = new Meteorite({properties: {name: "Rivolta de Bassi", year: "1491-01-01T00:00:00.000", recclass: "Stone-uncl", id: "22614"}, geometry: [12.73333, 50.18333]
    });
  });


  it("has a name", function() {
     expect(meteorite.name).toEqual("Rivolta de Bassi");
  });

  it("has a year", function() {
     expect(meteorite.year).toEqual("1491-01-01T00:00:00.000");
  });

  it("has a recclass", function() {
     expect(meteorite.recclass).toEqual("Stone-uncl");
  });

  it("has a location", function() {
     expect(meteorite.location).toEqual([12.73333, 50.18333]);
  });

  it("has a nasa ID", function() {
     expect(meteorite.nasaId).toEqual("22614");
  });

  describe("Meteorite tells story.", function() {
    it("will tell a confused story before defeat", function() {
      expect(meteorite.tellStory()).toMatch(/.*\M\y\ /);
    });

    xit("will tell a coherent story after defeat", function() {
      console.log(meteorite.location);
      meteorite.defeated = true;
      // console.log(meteorite.getLat());
      expect(meteorite.tellStory()).toMatch(/.*\d/);
    });

  });




});

@@ -45,16 +45,17 @@
 eteorite
+;
 %0A%0A  befo
@@ -245,16 +245,17 @@
 0.18333%5D
+;
 %0A    %7D);
@@ -919,16 +919,18 @@
 ch(/
-.*%5CM%5Cy%5C 
+My name is
 /);%0A
@@ -942,17 +942,16 @@
 );%0A%0A    
-x
 it(%22will
@@ -1011,113 +1011,65 @@
     
-console.log(meteorite.location);%0A      meteorite.defeated = true;%0A      // console.log(meteorite.getLat()
+meteorite.defeated = true;%0A      meteorite.generateStory(
 );%0A 
@@ -1116,11 +1116,18 @@
 ch(/
-.*%5C
+Please fin
 d/);
@@ -1139,19 +1139,14 @@
 %7D);%0A
-%0A
   %7D);%0A
-%0A%0A%0A%0A
 %7D);%0A

test for unique story