We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cc7a7 commit 72c8b1cCopy full SHA for 72c8b1c
spec/integration/rails_integration_spec.rb
@@ -48,10 +48,10 @@
48
#
49
# Table name: tasks
50
51
-# id :integer not null, primary key
+# id :integer not null, primary key
52
# content :string(255)
53
-# created_at :datetime not null
54
-# updated_at :datetime not null
+# created_at :datetime not null
+# updated_at :datetime not null
55
56
57
class Task < ActiveRecord::Base
@@ -60,7 +60,7 @@ class Task < ActiveRecord::Base
60
61
if base_version == "2.3"
62
# for some reason timestamps are not required in Rails 2.3.14
63
- expected_model.gsub!("datetime not null", "datetime")
+ expected_model.gsub!(/datetime +not null/, "datetime")
64
end
65
File.read("app/models/task.rb").should == expected_model
66
0 commit comments