Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Latest commit

 

History

History
 
 

dummy_app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TheSortableTree Test Application

Ruby 2.0.0p247 + Rails 4 + Haml 4 + the_sortable_tree (2.3.0)

Install App and try to use TheSortableTree

Create Database config file

cp config/database.yml.example config/database.yml

Create Database and Test data

rake db:bootstrap_and_seed

Start Rails 4

rails s

or

rails s -p 3000 -b site.com

Open browser

localhost:3000

How to run tests for TheSortable tree

git clone git@github.com:the-teacher/the_sortable_tree.git
cd the_sortable_tree/spec/dummy_app/

# cp config/database.yml.example config/database.yml

rake db:bootstrap RAILS_ENV=test
rspec

Using ancestry

The dummy app supports a number ways to add a sortable tree to the model, which can be set by the environment variable SORTABLE_TREE_TYPE.

Note that you need to set the environment variable when seeding the database as well as when running the rails server or tests.