Sha256: db531454874280834ec04037636e451eeff70a3b8006448bd51f7257d6d9fd87

Contents?: true

Size: 400 Bytes

Versions: 15

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require "test_helper"
require "active_record"

class RequireTest < ActiveSupport::TestCase
  def setup
    ActiveRecord::Relation.new(nil, table: nil, predicate_builder: nil)
    require "test_helper"
    @user = User.create name: "Dingding Ye", email: "yedingding@gmail.com"
  end

  def test_should_find_the_user
    assert_equal @user, User.find(@user.id)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
second_level_cache-2.7.1 test/require_test.rb
second_level_cache-2.7.0 test/require_test.rb
second_level_cache-2.6.4 test/require_test.rb
second_level_cache-2.6.3 test/require_test.rb
second_level_cache-2.6.2 test/require_test.rb
second_level_cache-2.6.1 test/require_test.rb
second_level_cache-2.6.0 test/require_test.rb
second_level_cache-2.5.3 test/require_test.rb
second_level_cache-2.5.2 test/require_test.rb
second_level_cache-2.5.0 test/require_test.rb
second_level_cache-2.4.4 test/require_test.rb
second_level_cache-2.4.3 test/require_test.rb
second_level_cache-2.4.2 test/require_test.rb
second_level_cache-2.4.1 test/require_test.rb
second_level_cache-2.4.0 test/require_test.rb