spec/ransack_spec.rb in nql-0.0.4 vs spec/ransack_spec.rb in nql-0.0.5

- old
+ new

@@ -60,9 +60,17 @@ q[:c][0].should have_attribute 'id' q[:c][0].should have_predicate 'cont' q[:c][0].should have_value '1234' end + it 'Matches' do + q = parser.parse('id ~ 1234').to_ransack + + q[:c][0].should have_attribute 'id' + q[:c][0].should have_predicate 'matches' + q[:c][0].should have_value '1234' + end + it 'Model references' do q = parser.parse('models.id = 1234').to_ransack q[:c][0].should have_attribute 'models_id' q[:c][0].should have_predicate 'eq' \ No newline at end of file