Permalink
Browse files

rm validations for testing

  • Loading branch information...
rubiii committed Apr 28, 2012
1 parent 19d8a1b commit 40c6e5a047c168b82573797c08bd7834a9939998
Showing with 1 addition and 4 deletions.
  1. +0 −1 app/models/category.rb
  2. +0 −1 app/models/company.rb
  3. +0 −1 app/models/tag.rb
  4. +1 −1 spec/models/category_spec.rb
View
@@ -3,5 +3,4 @@ class Category < ActiveRecord::Base
has_many :tags
attr_accessible :name
- validates :name, presence: true
end
View
@@ -6,7 +6,6 @@ class Company < ActiveRecord::Base
mount_uploader :logo, LogoUploader
attr_accessible :name, :description, :street, :zip, :city, :url, :email, :searches, :provides, :facebook_url, :twitter_url, :rss_url
- validates_presence_of :name, :description, :street, :zip, :city, :email
before_save :query_for_lonlat
View
@@ -3,5 +3,4 @@ class Tag < ActiveRecord::Base
belongs_to :category
attr_accessible :name
- validates :name, presence: true
end
@@ -4,6 +4,6 @@
it { should have_many(:companies) }
it { should have_many(:tags) }
- it { should validate_presence_of(:name) }
+ #it { should validate_presence_of(:name) }
end

0 comments on commit 40c6e5a

Please sign in to comment.