Sha256: 027016968aea1df8c5b0f45ae555a93241c19db7afe17b02efcb67b8fa68a19a
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
require 'spec_helper' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datatables-net-0.4.0 | spec/ajax-datatables-rails/datatable/simple_search_spec.rb |