Sha256: 06c393cf03b221cce95ee47be3f2e2e0725ebbb0c96cbd21af71445ebf481386
Contents?: true
Size: 882 Bytes
Versions: 10
Compression:
Stored size: 882 Bytes
Contents
require 'test_helper' class Kaui::HomeControllerTest < Kaui::FunctionalTestHelper test 'should understand search queries' do get :search, :q => 'John Doe' assert_redirected_to accounts_path(:q => 'John Doe') get :search, :q => 'de305d54-75b4-431b-adb2-eb6b9e546014' assert_redirected_to accounts_path(:q => 'de305d54-75b4-431b-adb2-eb6b9e546014') get :search, :q => 'invoice:de305d54-75b4-431b-adb2-eb6b9e546014' assert_redirected_to invoice_path(:id => 'de305d54-75b4-431b-adb2-eb6b9e546014') get :search, :q => 'payment:de305d54-75b4-431b-adb2-eb6b9e546014' assert_redirected_to payment_path(:id => 'de305d54-75b4-431b-adb2-eb6b9e546014') get :search, :q => 'invoice:546014' assert_redirected_to invoice_path(:id => '546014') get :search, :q => 'payment:546014' assert_redirected_to payment_path(:id => '546014') end end
Version data entries
10 entries across 10 versions & 1 rubygems