Sha256: 7433703541e2b8557d172c900bd021786cdeabfaf02c96041c4f170e08e4af5a

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

require_relative "test_helper"

class TestSqlite < Minitest::Test
  include TestGroupdate
  include TestDatabase

  def setup
    super
    @@setup ||= begin
      ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
      create_tables
      true
    end
  end

  def test_where_after
    skip
  end

  def call_method(method, field, options)
    if method == :quarter || options[:time_zone] || options[:day_start] || options[:week_start] || Groupdate.week_start != :sun || (Time.zone && options[:time_zone] != false)
      error = assert_raises(Groupdate::Error) { super }
      assert_includes error.message, "not supported for SQLite"
      skip # after assertions
    else
      super
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
groupdate-4.0.1 test/sqlite_test.rb
groupdate-4.0.0 test/sqlite_test.rb
groupdate-3.2.0 test/sqlite_test.rb