localStorage.clear();
describe('Lockr::Saving data', function  () {
  it('should save a key-value pair in the localStorage', function () {
    Lockr.set('test', 123);
    expect(localStorage.getItem('test')).toEqual('{"data":123}');
    Lockr.set('test_floating', 123.123);
    expect(localStorage.getItem('test_floating')).toEqual('{"data":123.123}');
  });
  it('should save a hash object in the localStorage', function () {
    Lockr.set('my_hash', {"test": 123, "hey": "whatsup"});
    expect(localStorage.getItem('my_hash')).toContain('data');
    expect(localStorage.getItem('my_hash')).toContain('test');
    expect(localStorage.getItem('my_hash')).toContain('123');
    expect(localStorage.getItem('my_hash')).toContain('hey');
    expect(localStorage.getItem('my_hash')).toContain('whatsup');
  });
});

describe('Lockr::Retrieving data', function  () {
  it('should get a hash object from the localStorage', function () {
    var integer = Lockr.get('test');
    var floating = Lockr.get('test_floating');
    var number = Lockr.get('test');
    var hash = Lockr.get('my_hash');
    var empty = Lockr.get('something_that_doesnt_exist');
    expect(hash.hey).toBe('whatsup');
    expect(hash.test).toEqual(123);

    expect(integer).toEqual(123);
    expect(floating).toEqual(123.123);
    expect(empty).not.toBeNull();
    expect(empty).toBeUndefined();
  });

  it('should get all contents of the localStorage', function () {
    var contents = Lockr.getAll();
    expect(contents.length).toBe(3);
    expect(contents).toContain(123.123);
    expect(contents).toContain({"test": 123, "hey": "whatsup"});
    expect(contents).toContain(123);
  });

  it('should return strings containing "{"" as strings', function () {
    var theString = 'This is a string containing the characters "{", "}", "[", "]", ":" which are used in objects';

    Lockr.set('aString', theString);
    expect(Lockr.get('aString')).toEqual(theString);
  });

  it('should clean wrong data', function () {
    localStorage.setItem('wrong', ',fluffy,truffly,commas,hell');
    expect(Lockr.get('wrong')).toBeUndefined();
  });
});

describe('Lockr::Deleting an element', function () {
  it('should remove succesfully a key-value pair', function() {
    Lockr.rm('test_floating');
    expect(Lockr.get('test_floating')).toBeUndefined();
    var contents = Lockr.getAll();
    expect(contents.length).toBe(4);
  });
});
describe('Lockr::Flushing data', function  () {
  it('should clear all contents of the localStorage', function () {
    Lockr.flush();
    var contents = Lockr.getAll();
    expect(contents.length).toBe(0);
  });
});

describe('Lockr.sadd', function () {
  it('saves a set under the given key in the localStorage', function () {
    Lockr.flush();
    Lockr.sadd('test_set', 1)
    Lockr.sadd('test_set', 2)
    expect(localStorage.getItem('test_set')).toEqual('{"data":[1,2]}');
  });

  it('does not add the same value again', function() {
    Lockr.sadd('test_set, 1');
    expect(Lockr.smembers('test_set')).toEqual([1, 2]);
  });
});

describe('Lockr.smembers', function() {
  it('returns all the values for given key', function() {
    expect(Lockr.smembers('test_set')).toEqual([1, 2]);
  });
});

describe('Lock.sismember', function() {
  it('returns true if the value exists in the given set(key)', function () {
    expect(Lockr.sismember('test_set', 1)).toEqual(true);
    expect(Lockr.sismember('test_set', 34)).toEqual(false);
  });
});

describe('Lock.srem', function() {
  it('removes value from collection if exists', function() {
    Lockr.srem('test_set', 1);
    expect(Lockr.sismember('test_set', 1)).toEqual(false);
  });
});

describe('Lockr::Prefixed', function() {
  it('should set a salt key', function() {
    Lockr.prefix = "imaprefix";
    expect(Lockr.prefix).toEqual("imaprefix");
  });
  it('should return a correctly prefixed key', function() {
    expect(Lockr._getPrefixedKey('lalala')).toEqual('imaprefixlalala');
  });
  it('should return a non-prefixed key', function() {
    expect(Lockr._getPrefixedKey('lalala', {noPrefix: true})).toEqual("lalala");
  });
  it('should save a key-value pair, salted', function() {
    Lockr.set("justlikeyou", true);
    expect("imaprefixjustlikeyou" in localStorage).toEqual(true);
  });
});

@@ -3706,16 +3706,14 @@
 t a 
-salt key
+prefix
 ', f
@@ -4128,12 +4128,14 @@
 ir, 
-salt
+prefix
 ed',

Fix typos in specs