Skip to content

ratantirkey/ClientTask

Repository files navigation

ClientTask

It's plain ruby search program from command-line | Linux Terminal

  1. run ruby search.rb
  2. run ruby search_api.rb
  3. run ruby search_json.rb
  4. run ruby search_json_value.rb
  5. run rspec spec/* or run bundle exec rspec spec/*

Table of contents

Search info

  • run ruby search.rb
  • run ruby search.rb | for e.g. ruby search.rb search emma
  • run ruby search.rb find_duplicates

Search_api info

Search_json info

  • ruby search_json.rb
  • Enter the path to the JSON file . for eg. ./client/client.json
  • Enter the field to search for . for eg. full_name

Search_json_value info

  • ruby search_json_value.rb
  • Enter the path to the JSON file . for eg. ./client/client.json
  • Enter the field to search for . for eg. full_name
  • Enter the value to search for . for eg. john

Test Cases info

  • Four test cases added 1)spec/client.rb 2) spec/search.rb 3) spec/search_api.rb 4) spec/search_json.rb 5) spec/search_json_value.rb
  • run rspec spec/client.rb or spec/search.rb or spec/search_api.rb or spec/search_json.rb or spec/search_json_value.rb
  • run bundle exec rspec spec/client.rb or spec/search.rb or spec/search_api.rb or spec/search_json.rb or spec/search_json_value.rb
  • run spec/*

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages