Skip to content

Instantly share code, notes, and snippets.

@jessieay
Last active December 29, 2015 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessieay/7714041 to your computer and use it in GitHub Desktop.
Save jessieay/7714041 to your computer and use it in GitHub Desktop.
field entry spec
require 'spec_helper;
describe FieldEntry, '#to_hash' do
it 'returns the correct hash format' do
field_entry = FieldEntry.new("room",["a","b,"c"]).to_hash
expect(field_entry).to eq { name: 'room', values: [ "a", "b", "c"] }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment