Last active
December 29, 2015 18:59
-
-
Save jessieay/7714041 to your computer and use it in GitHub Desktop.
field entry spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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