Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds data to table before spec "works when mysql reserved words are u…

…sed"
  • Loading branch information...
commit 90aa3770065ebf3133520822f09ed89ab7314f73 1 parent 728500d
@spickermann spickermann authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  spec/integration/lhm_spec.rb
View
3  spec/integration/lhm_spec.rb
@@ -207,6 +207,8 @@
it "works when mysql reserved words are used" do
table_create(:lines)
+ execute("insert into `lines` set id = 1, `between` = 'foo'")
+ execute("insert into `lines` set id = 2, `between` = 'bar'")
Lhm.change_table(:lines) do |t|
t.add_column('by', 'varchar(10)')
@@ -221,6 +223,7 @@
table_read(:lines).columns.wont_include 'lines'
index_on_columns?(:lines, ['between'], :unique).must_equal true
index_on_columns?(:lines, ['by']).must_equal false
+ count_all(:lines).must_equal(2)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.