Sha256: d566b16b588d3d7cd739d18f7989424cbfe88bcaec4b39c853e8553979871a17

Contents?: true

Size: 269 Bytes

Versions: 12

Compression:

Stored size: 269 Bytes

Contents

module RSpec::RubyContentMatchers    
  def have_add_tbl_index(tbl_name, index_name)
    HaveCall.new('add_index', ":#{tbl_name}\s*,\s*:#{index_name}")
  end

  def have_remove_index(name)
    HaveCall.new('remove_index', ":#{tbl_name}\s*,\s*:#{index_name}")
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
generator-spec-0.5.0 lib/generator_spec/matchers/migration/have_index.rb
generator-spec-0.4.8 lib/generator_spec/matchers/migration/have_index.rb
generator-spec-0.4.7 lib/generator_spec/matchers/migration/have_index.rb
generator-spec-0.4.5 lib/generator_spec/matchers/migration/have_index.rb
generator-spec-0.4.4 lib/generator_spec/matchers/migration/have_index.rb
generator-spec-0.4.3 lib/rspec_for_generators/matchers/migration/have_index.rb
generator-spec-0.4.2 lib/rspec_for_generators/matchers/migration/have_index.rb
generator-spec-0.4.1 lib/rspec_for_generators/matchers/migration/have_index.rb
generator-spec-0.4.0 lib/rspec_for_generators/matchers/migration/have_index.rb
generator-spec-0.3.5 lib/rspec_for_generators/matchers/migration/have_index.rb
generator-spec-0.3.4 lib/rspec_for_generators/matchers/migration/have_index.rb
generator-spec-0.3.3 lib/rspec_for_generators/matchers/migration/have_index.rb