Sha256: 0f73a9e31f36520afbd086d101397dfe6dd07937220cc9a1187cd79a64272094

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

require 'spec_helper'

# See submodules for more
describe DbMod::As do
  it 'disallows unknown coercions' do
    expect do
      Module.new do
        include DbMod

        def_statement(:foo, 'SELECT 1').as(:lolwut)
      end
    end.to raise_exception ArgumentError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
db_mod-0.0.3 spec/db_mod/as_spec.rb