Smart Answers
=============

Toolkit for building smart answers. Have a look at
[`test/unit/flow_test.rb`](smart-answers/blob/master/test/unit/flow_test.rb) for example usage.

This application supports two styles of writing and executing smart answers:

**Ruby and YAML-based smart answer flows**

For more information, please go to the [Ruby/YAML SmartAnswer README](lib/smart_answer_flows/README.md)

**Smartdown-based smart answer flows**

For more information, please go to the [Smartdown SmartAnswer README](lib/smartdown_flows/README.md)

**Switching from one style to another**

Smart answers are by default expected to be in Ruby/YAML style.
To transition a smart answer from Ruby/YML to Smartdown style, register it in the smartdown registry (`lib/smartdown/registry.rb`).

Testing
------------
Run unit tests by executing the following:

    bundle exec rake

Issues/todos
------------

Please see the [github issues](https://github.com/alphagov/smart-answers/issues) page.

Smart Answers
=============

Toolkit for building smart answers. Have a look at
[`test/unit/flow_test.rb`](test/unit/flow_test.rb) for example usage.

This application supports two styles of writing and executing smart answers:

**Ruby and YAML-based smart answer flows**

For more information, please go to the [Ruby/YAML SmartAnswer README](lib/smart_answer_flows/README.md)

**Smartdown-based smart answer flows**

For more information, please go to the [Smartdown SmartAnswer README](lib/smartdown_flows/README.md)

**Switching from one style to another**

Smart answers are by default expected to be in Ruby/YAML style.
To transition a smart answer from Ruby/YML to Smartdown style, register it in the smartdown registry (`lib/smartdown/registry.rb`).

Testing
------------
Run unit tests by executing the following:

    bundle exec rake

Issues/todos
------------

Please see the [github issues](https://github.com/alphagov/smart-answers/issues) page.

Fix a relative URL in the readme
Fix a relative URL in the readme

The URL is relative and appends unnecessary path components before
`test/unit`. The repo and branch names are already in the current URL
and threfore must not be included in the relative URL.
