Sha256: 6c0d463674d8f4f009a1220ef43f007aeb494c9c1fc18903bcd8dc25d4283ba2

Contents?: true

Size: 425 Bytes

Versions: 4

Compression:

Stored size: 425 Bytes

Contents

require 'spec_helper'

describe RawData do

  before do
    table = Table.new(schema_file)
    @subject = RawData.new('assignments', table.content_for('assignments'))
  end

  it 'stores the raw table name' do
    expect(@subject.name).to eq 'assignments'
  end

  it 'stores the raw content of the table' do
    content = "    t.integer \"foo\"\n    t.string  \"bar\"\n"
    expect(@subject.content).to eq content
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
columns-0.2.0 spec/raw_data_spec.rb
columns-0.1.1 spec/raw_data_spec.rb
columns-0.1.0 spec/raw_data_spec.rb
columns-0.0.1 spec/raw_data_spec.rb