Sha256: f13cff218283dc0330d15a07cee0e95177fca7bcad9ce295ac3cfdbd09357773
Contents?: true
Size: 502 Bytes
Versions: 7
Compression:
Stored size: 502 Bytes
Contents
Screw.Unit(function() { describe("Array extensions", function() { describe("toSentence", function() { var array = ['Adama', 'Tigh', 'Roslin']; it("should join an array using and by default", function() { expect(array.toSentence()).to(equal, "Adama, Tigh and Roslin"); }); it("should allow specification of a custom connector string", function() { expect(array.toSentence('or')).to(equal, "Adama, Tigh or Roslin"); }); }); }); });
Version data entries
7 entries across 6 versions & 1 rubygems