Skip to content

Commit

Permalink
updated readme to include text why show_exceptions must be set to tru…
Browse files Browse the repository at this point in the history
…e in tests
  • Loading branch information
jbasdf committed Oct 24, 2010
1 parent ae4b967 commit 5faa23a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ be sure to set content_css to any css files you want to have show up in your tin
end
end

=== Tests
Muck-Contents inserts an exception handler. If this handler is not loaded the gem will prevent your application from loading. This is mainly a problem in tests
where show_exceptions is set to false. Enable 'show_exceptions' in test.rb:

RailsTest::Application.configure do
config.action_dispatch.show_exceptions = true # Must be true to include the rack middleware require to generate missing page exceptions
end

=== Tiny MCE Initializer
Running rake muck:contents:sync will copy all the needed javascript, image and css files into your project. It will also create an initializer called mce_options.rb. That file
contains two basic configurations for tinymce as well as examples on how to create templates. It is recommended that you don't modify that file as it will be overwritten the
Expand Down
2 changes: 1 addition & 1 deletion test/rails_test/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "http://rubygems.org"

gem "rails", "3.0.0"
gem "rails", "3.0.1"
gem 'mysql'

# gem 'authlogic'
Expand Down

0 comments on commit 5faa23a

Please sign in to comment.