Skip to content

Commit

Permalink
Fixed deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsvetomila Mihaylova committed Feb 6, 2012
1 parent 4cc0c1b commit 1935f86
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/validators/boolean_validator_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/validators/date_format_validator_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/validators/email_format_validator_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/validators/name_format_validator_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/validators/url_format_validator_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1935f86

Please sign in to comment.