Table of Contents - hatt-0.0.2 Documentation
Pages
- LICENSE
-
README
- HATT (HTTP API Testing Tool)
- Basic testing features
- Short Example
- Configure HATT, and setup a simple DSL method
- install hatt
- make a project directory
- Make a file called 'hatt.yml' with these contents:
- Put our API key into hatt.secret.yml
- make the hattdsl directory:
- add method for checking weather to hattdsl/open_weather_map_hattdsl.rb
- Call it from the cmd line:
- Make a ruby script, that uses the hattdsl:
- Make a file called temperatures.rb with this in it:
- And then run the hatt script like so:
- Make an automated test
- Install rspec:
- Create the spec folder:
- Setup spec/spec_helper.rb with these contents to :
- Setup spec/weather_spec.rb with contents like:
- Run it:
-
README
- HATT (HTTP API Testing Tool)
- Basic testing features
- Short Example
- Configure HATT, and setup a simple DSL method
- install hatt
- make a project directory
- Make a file called 'hatt.yml' with these contents:
- Put our API key into hatt.secret.yml
- make the hattdsl directory:
- add method for checking weather to hattdsl/open_weather_map_hattdsl.rb
- Call it from the cmd line:
- Make a ruby script, that uses the hattdsl:
- Make a file called temperatures.rb with this in it:
- And then run the hatt script like so:
- Make an automated test
- Install rspec:
- Create the spec folder:
- Setup spec/spec_helper.rb with these contents to :
- Setup spec/weather_spec.rb with contents like:
- Run it:
Classes and Modules
- Hatt
- Hatt::ApiClients
- Hatt::BlankSlateProxy
- Hatt::Configuration
- Hatt::ConfigurationError
- Hatt::DSL
- Hatt::HTTP
- Hatt::HattNoSuchHattFile
- Hatt::JsonHelpers
- Hatt::Log
- Hatt::Mixin
- Hatt::RequestException
- Hatt::SingletonMixin
- Hatt::SingletonMixin::InitOnceHattClass
Methods
- ::hatt_instance — Hatt::SingletonMixin
- ::new — Hatt::BlankSlateProxy
- ::new — Hatt::HTTP
- ::new — Hatt::RequestException
- ::new — Hatt
- #add_logger — Hatt::Log
- #body — Hatt::RequestException
- #code — Hatt::RequestException
- #delete — Hatt::HTTP
- #do_request — Hatt::HTTP
- #get — Hatt::HTTP
- #hatt_add_service — Hatt::ApiClients
- #hatt_build_client_methods — Hatt::ApiClients
- #hatt_config_file — Hatt::Configuration
- #hatt_config_file= — Hatt::Configuration
- #hatt_config_file_path — Hatt::Configuration
- #hatt_configuration — Hatt::Configuration
- #hatt_initialize — Hatt::Mixin
- #hatt_instance — Hatt::SingletonMixin
- #hatt_instance_has_method? — Hatt::SingletonMixin
- #hatt_load_hatt_file — Hatt::DSL
- #hatt_load_hatt_glob — Hatt::DSL
- #head — Hatt::HTTP
- #in_parallel — Hatt::HTTP
- #init_config — Hatt::Configuration
- #jsonify — Hatt::JsonHelpers
- #last_response_status — Hatt::HTTP
- #launch_pry_repl — Hatt::Mixin
- #level= — Hatt::Log
- #load_hatts_using_configuration — Hatt::DSL
- #log — Hatt::Log
- #log_request — Hatt::HTTP
- #log_response — Hatt::HTTP
- #logger — Hatt::Log
- #loggers — Hatt::Log
- #make_headers — Hatt::HTTP
- #make_path — Hatt::HTTP
- #method_missing — Hatt::BlankSlateProxy
- #method_missing — Hatt::SingletonMixin
- #normalize_services_config — Hatt::Configuration
- #objectify — Hatt::JsonHelpers
- #options — Hatt::HTTP
- #parent_has_method? — Hatt::BlankSlateProxy
- #patch — Hatt::HTTP
- #post — Hatt::HTTP
- #post_form — Hatt::HTTP
- #put — Hatt::HTTP
- #respond_to_missing? — Hatt::BlankSlateProxy
- #respond_to_missing? — Hatt::SingletonMixin
- #run_script_file — Hatt::Mixin
- #stubs — Hatt::HTTP
- #to_s — Hatt::RequestException
- #with_local_load_path — Hatt::DSL