Permalink
Browse files

Fixed deprecated method.

  • Loading branch information...
Tsvetomila Mihaylova
Tsvetomila Mihaylova committed Feb 6, 2012
1 parent 4cc0c1b commit 1935f86c3f400ddf53957c2f3b51d69303a71b05
@@ -3,7 +3,7 @@
describe BooleanValidator do
before(:all) do
class UserWithBoolean < ActiveRecord::Base
- set_table_name 'mocked_users'
+ self.table_name = 'mocked_users'
validates :active, boolean: true
end
@@ -3,7 +3,7 @@
describe DateFormatValidator do
before(:all) do
class UserWithDate < ActiveRecord::Base
- set_table_name 'mocked_users'
+ self.table_name = 'mocked_users'
validates :birth_date, date_format: true
end
@@ -3,7 +3,7 @@
describe EmailFormatValidator do
before(:all) do
class UserWithEmail < ActiveRecord::Base
- set_table_name 'mocked_users'
+ self.table_name = 'mocked_users'
validates :email, email_format: true
end
@@ -3,7 +3,7 @@
describe NameFormatValidator do
before(:all) do
class UserWithName < ActiveRecord::Base
- set_table_name 'mocked_users'
+ self.table_name = 'mocked_users'
validates :name, name_format: true
end
@@ -3,7 +3,7 @@
describe UrlFormatValidator do
before(:all) do
class UserWithUrl < ActiveRecord::Base
- set_table_name 'mocked_users'
+ self.table_name = 'mocked_users'
validates :url, url_format: true
end

0 comments on commit 1935f86

Please sign in to comment.