Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ka8725 committed Jan 8, 2016
1 parent 4d96087 commit 6747fa8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/rake_task_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
assert_equal <<-MIGRATION, File.read(latest_migration)
class CreateSchema < ActiveRecord::Migration
def change
create_table \"users\", force: #{FOURCE_MIGRATION} do |t|
create_table \"users\", force: #{FORCE_MIGRATION} do |t|
t.string \"name\"
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/schema_dumper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
it 'squashes the schema' do
stream = MigrationData::ActiveRecord::SchemaDumper.dump
assert_equal <<-SCHEMA, stream.string
create_table \"users\", force: #{FOURCE_MIGRATION} do |t|
create_table \"users\", force: #{FORCE_MIGRATION} do |t|
t.string \"name\"
end
Expand Down
2 changes: 1 addition & 1 deletion test/squash_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
assert_equal <<-MIGRATION, File.read(db_path.join('100500_create_schema.rb'))
class CreateSchema < ActiveRecord::Migration
def change
create_table \"users\", force: #{FOURCE_MIGRATION} do |t|
create_table \"users\", force: #{FORCE_MIGRATION} do |t|
t.string \"name\"
end
end
Expand Down
10 changes: 5 additions & 5 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: 'tmp/test.sqlite3')

FOURCE_MIGRATION = if ActiveRecord.version < Gem::Version.new('4.2.0.rc1')
'true'
else
':cascade'
end
FORCE_MIGRATION = if ActiveRecord.version < Gem::Version.new('4.2.0.rc1')
'true'
else
':cascade'
end

0 comments on commit 6747fa8

Please sign in to comment.