diff options
| author | hukl <contact@smyck.org> | 2009-02-17 12:47:49 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-17 12:47:49 +0100 |
| commit | 3cdcb5ca02a94b2b342c30903a27d47d35d46e55 (patch) | |
| tree | ef3e1154fe262561b3955c07edcaee3824a21f47 /vendor/plugins/will_paginate/test/lib/load_fixtures.rb | |
| parent | 7a282f2605f6fb3689940e5c7072b4801653deb2 (diff) | |
added will_paginate plugin
Diffstat (limited to 'vendor/plugins/will_paginate/test/lib/load_fixtures.rb')
| -rw-r--r-- | vendor/plugins/will_paginate/test/lib/load_fixtures.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/plugins/will_paginate/test/lib/load_fixtures.rb b/vendor/plugins/will_paginate/test/lib/load_fixtures.rb new file mode 100644 index 00000000..10d6f420 --- /dev/null +++ b/vendor/plugins/will_paginate/test/lib/load_fixtures.rb | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | require 'boot' | ||
| 2 | require 'lib/activerecord_test_connector' | ||
| 3 | |||
| 4 | # setup the connection | ||
| 5 | ActiveRecordTestConnector.setup | ||
| 6 | |||
| 7 | # load all fixtures | ||
| 8 | Fixtures.create_fixtures(ActiveRecordTestConnector::FIXTURES_PATH, ActiveRecord::Base.connection.tables) | ||
| 9 | |||
| 10 | require 'will_paginate' | ||
| 11 | WillPaginate.enable_activerecord | ||
