Sha256: c16ed980e8e5deca916dbece85d4d17da0daae7dddc977d4f0254bcee24afb21
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe AjaxDatatablesRails::Datatable::SimpleSearch do let(:options) { ActiveSupport::HashWithIndifferentAccess.new({ 'value' => 'search value', 'regex' => 'true' }) } let(:simple_search) { AjaxDatatablesRails::Datatable::SimpleSearch.new(options) } describe 'option methods' do it 'regexp?' do expect(simple_search.regexp?).to be(true) end it 'value' do expect(simple_search.value).to eq('search value') end end end
Version data entries
3 entries across 3 versions & 1 rubygems