X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b6a3e9671cf62e0a56985641e8bae7b6ea21edf5..6bf25141de8b1fa21198e3cfe85ff95f39231efe:/vendor/plugins/classic_pagination/test/fixtures/company.rb diff --git a/vendor/plugins/classic_pagination/test/fixtures/company.rb b/vendor/plugins/classic_pagination/test/fixtures/company.rb new file mode 100644 index 000000000..0d1c29b90 --- /dev/null +++ b/vendor/plugins/classic_pagination/test/fixtures/company.rb @@ -0,0 +1,9 @@ +class Company < ActiveRecord::Base + attr_protected :rating + set_sequence_name :companies_nonstd_seq + + validates_presence_of :name + def validate + errors.add('rating', 'rating should not be 2') if rating == 2 + end +end \ No newline at end of file