module RSpec::Matchers::Sequel
Public Instance Methods
have_column(name)
click to toggle source
# File lib/rspec/sequel_expectations/matchers/have_column.rb, line 115 def have_column(name) HaveColumn.new(name) end
have_enum(enum_name)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# File lib/rspec/sequel_expectations/matchers/have_primary_key.rb, line 55 def have_primary_key(*names) HavePrimaryKey.new(*names) end
Also aliased as: have_primary_keys
have_unique_index_on(column)
click to toggle source
# File lib/rspec/sequel_expectations/matchers/have_index_on.rb, line 98 def have_unique_index_on(column) HaveIndexOn.new(column, true) end
Also aliased as: have_uniq_index_on
refer_to(table)
click to toggle source
# File lib/rspec/sequel_expectations/matchers/refer_to.rb, line 118 def refer_to(table) ReferTo.new(table) end