Sha256: 885eda14429e84016fb1371b9662398082eeba81e971c21784f5aa34c9e2418e
Contents?: true
Size: 421 Bytes
Versions: 19
Compression:
Stored size: 421 Bytes
Contents
require_relative '../test_helper' class FooTest < ActiveSupport::TestCase def test_fixtures_validity Foo.all.each do |foo| assert foo.valid?, foo.errors.inspect end end def test_validation foo = Foo.new assert foo.invalid? assert_errors_on foo, :bar end def test_creation assert_difference 'Foo.count' do Foo.create( :bar => 'test bar', ) end end end
Version data entries
19 entries across 19 versions & 1 rubygems