Module: RSpec::Matchers::Sequel

Defined in:
lib/rspec/sequel_expectations/matchers/refer_to.rb,
lib/rspec/sequel_expectations/matchers/have_enum.rb,
lib/rspec/sequel_expectations/matchers/have_column.rb,
lib/rspec/sequel_expectations/matchers/have_index_on.rb,
lib/rspec/sequel_expectations/matchers/have_primary_key.rb

Defined Under Namespace

Classes: HaveColumn, HaveEnum, HaveIndexOn, HavePrimaryKey, ReferTo

Instance Method Summary collapse

Instance Method Details

#have_column(name) ⇒ Object



115
116
117
# File 'lib/rspec/sequel_expectations/matchers/have_column.rb', line 115

def have_column(name)
  HaveColumn.new(name)
end

#have_enum(enum_name) ⇒ Object



66
67
68
# File 'lib/rspec/sequel_expectations/matchers/have_enum.rb', line 66

def have_enum(enum_name)
  HaveEnum.new(enum_name)
end

#have_index_on(column) ⇒ Object



94
95
96
# File 'lib/rspec/sequel_expectations/matchers/have_index_on.rb', line 94

def have_index_on(column)
  HaveIndexOn.new(column)
end

#have_primary_key(*names) ⇒ Object Also known as: have_primary_keys



55
56
57
# File 'lib/rspec/sequel_expectations/matchers/have_primary_key.rb', line 55

def have_primary_key(*names)
  HavePrimaryKey.new(*names)
end

#have_unique_index_on(column) ⇒ Object Also known as: have_uniq_index_on



98
99
100
# File 'lib/rspec/sequel_expectations/matchers/have_index_on.rb', line 98

def have_unique_index_on(column)
  HaveIndexOn.new(column, true)
end

#refer_to(table) ⇒ Object



118
119
120
# File 'lib/rspec/sequel_expectations/matchers/refer_to.rb', line 118

def refer_to(table)
  ReferTo.new(table)
end