spec/table_spec.rb in columns-0.1.1 vs spec/table_spec.rb in columns-0.2.0
- old
+ new
@@ -3,19 +3,19 @@
describe Table do
before { @table = Table.new(schema_file) }
it 'find the right count of tables in the schema' do
- expect(@table.names.size).to eq 4
+ expect(@table.names.size).to eq 5
end
it 'find the right count of tables in a fake schema' do
schema = "create_table \"foos\"\nt.integer \"foo\"\nend"
expect(Table.new(schema).names.size).to eq 1
end
it "find the right table's names in the schema" do
- names = ['assignments', 'products', 'users', 'users_3']
+ names = ['assignments', 'products', 'users', 'users_3', 'policies']
@table.names.each do |name|
expect(names.include?(name)).to be true
end
end