From c815775d01d12ba1e89ca26afd834a02437f7ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strza=C5=82kowski?= Date: Mon, 17 Jun 2013 13:09:30 +0200 Subject: Copy company test fixture to AV (fixes failing test) --- actionview/test/fixtures/company.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 actionview/test/fixtures/company.rb (limited to 'actionview/test') diff --git a/actionview/test/fixtures/company.rb b/actionview/test/fixtures/company.rb new file mode 100644 index 0000000000..f3ac3642fa --- /dev/null +++ b/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 -- cgit v1.2.3