```ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'hal_api/rails'
require 'active_support/all'

require 'minitest/spec'
require 'minitest/autorun'
```

Fix missing raitie methods by requiring railties mixins before hal_api
user
```ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require "action_controller/railtie"
require "action_view/railtie"
require 'active_support/all'

require 'hal_api/rails'

require 'minitest/spec'
require 'minitest/autorun'
```
assistant