Sha256: 59c16aaa046c560b0b247551c5f159d329e2ed07f67957561aa51cac9c592ed2
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
require 'spec_helper' describe ModelData do before do table = Table.new(schema_file) raw = RawData.new('assignments', table.content_for('assignments')) @subject = ModelData.new(raw) end it 'provides the name of the model' do expect(@subject.name).to eq 'assignment' end it 'provides a «ready to paste» column names/types' do content = "# integer \"foo\"\n# string \"bar\"\n" expect(@subject.content).to eq content end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
columns-0.1.1 | spec/model_data_spec.rb |
columns-0.1.0 | spec/model_data_spec.rb |
columns-0.0.1 | spec/model_data_spec.rb |