Permalink
Browse files

Copy company test fixture to AV (fixes failing test)

  • Loading branch information...
1 parent f121094 commit c815775d01d12ba1e89ca26afd834a02437f7ab0 @lukaszx0 lukaszx0 committed Jun 17, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 actionview/test/fixtures/company.rb
@@ -0,0 +1,9 @@
+class Company < ActiveRecord::Base
+ has_one :mascot
+ self.sequence_name = :companies_nonstd_seq
+
+ validates_presence_of :name
+ def validate
+ errors.add('rating', 'rating should not be 2') if rating == 2
+ end
+end

0 comments on commit c815775

Please sign in to comment.