Limit total search results based on search_order's total_results
Refactor test suite
Add gem haml-rails
Config spec_helper.rb to utilize DatabaseCleaner to clean the whole database before each example
Refactor test suite
Add search_queries_attributes for accept_nested_attributes
Modified Search::Main to fix bug 'search results also contains image link'
Add more tests for Main#search
Init search controller
Add gem 'state_machine'