Sha256: efd8fcfba0d606b0df8640ff5e235b46a098da28c4836d44fc16f200621ea3d3

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

require 'test_helper'

class TablelessTest < MiniTest::Test
  def test_find_all
    assert FileModel.all.to_a.empty?
  end
  
  def test_find_by_id
    assert_raises ActiveRecord::RecordNotFound do
      FileModel.find('filename')
    end
  end
  
  def test_find_with_association
    assert Person.new.files.empty?
  end
end
  

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_scaffold-3.4.17 test/misc/tableless_test.rb
active_scaffold-3.4.16 test/misc/tableless_test.rb
active_scaffold-3.4.14 test/misc/tableless_test.rb
active_scaffold-3.4.13 test/misc/tableless_test.rb
active_scaffold-3.4.12 test/misc/tableless_test.rb