Write rspec tests for cookie class