Skip to content

Commit 4005fe3

Browse files
author
Nicolas Rodriguez
committed
Minor change
1 parent e022fbe commit 4005fe3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/ajax-datatables-rails/extended_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
create(:user, username: 'msmith', email: 'mary.smith@example.com', last_name: 'Smith', created_at: '01/02/2000')
2626
end
2727

28-
context 'when no range is passed' do
28+
context 'when range is empty' do
2929
it 'should not filter records' do
3030
datatable.params[:columns]['4'][:search][:value] = '-'
3131
expect(datatable.data.size).to eq 2
@@ -34,21 +34,21 @@
3434
end
3535
end
3636

37-
context 'when start_date is passed' do
37+
context 'when start date is filled' do
3838
it 'should filter records created after this date' do
3939
datatable.params[:columns]['4'][:search][:value] = '31/12/1999-'
4040
expect(datatable.data.size).to eq 2
4141
end
4242
end
4343

44-
context 'when end_date is passed' do
44+
context 'when end date is filled' do
4545
it 'should filter records created before this date' do
4646
datatable.params[:columns]['4'][:search][:value] = '-31/12/1999'
4747
expect(datatable.data.size).to eq 0
4848
end
4949
end
5050

51-
context 'when both date are passed' do
51+
context 'when both date are filled' do
5252
it 'should filter records created between the range' do
5353
datatable.params[:columns]['4'][:search][:value] = '01/12/1999-15/01/2000'
5454
expect(datatable.data.size).to eq 1

0 commit comments

Comments
 (0)