Skip to content

Commit

Permalink
Clean up and tweaks while working on a testing method
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderpantsGnome committed Jan 6, 2007
1 parent bf935af commit e2c464f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Sample usage:

Basic install:
./script/plugin install http://svn.underpantsgnome.com/fckeditor_on_rails

Drop a current copy of FCKeditor into public/fckeditor and setup whichever
method below you are using

appable_plugins info: http://wiki.pluginaweek.org/Appable_plugins

Expand Down
11 changes: 11 additions & 0 deletions install.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'fileutils'

FileUtils.ln_s(
File.join(File.dirname(__FILE__), 'test', 'fckeditor_controller_test.rb'),
File.join(File.dirname(__FILE__), '..', '..', 'test', 'functional',
'fckeditor_controller_test.rb')
) rescue puts <<-EOM
Unable to link the functional test, if you want to include fckeditor_on_rails
in your testing copy test/functional/fckeditor_controller_test.rb from the
plugin directory into your app
EOM
Binary file added test/files/rails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions uninstall.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'fileutils'

file_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test',
'functional', 'fckeditor_controller_test.rb'))

FileUtils.rm(file_path) rescue "Unable to remove #{file_path}" if
File.exist?(file_path)

0 comments on commit e2c464f

Please sign in to comment.