Skip to content

Commit 72c8b1c

Browse files
committed
tweak expected whitespace in integration test
1 parent 83cc7a7 commit 72c8b1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/integration/rails_integration_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
#
4949
# Table name: tasks
5050
#
51-
# id :integer not null, primary key
51+
# id :integer not null, primary key
5252
# content :string(255)
53-
# created_at :datetime not null
54-
# updated_at :datetime not null
53+
# created_at :datetime not null
54+
# updated_at :datetime not null
5555
#
5656
5757
class Task < ActiveRecord::Base
@@ -60,7 +60,7 @@ class Task < ActiveRecord::Base
6060

6161
if base_version == "2.3"
6262
# for some reason timestamps are not required in Rails 2.3.14
63-
expected_model.gsub!("datetime not null", "datetime")
63+
expected_model.gsub!(/datetime +not null/, "datetime")
6464
end
6565
File.read("app/models/task.rb").should == expected_model
6666

0 commit comments

Comments
 (0)