diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-08 10:42:03 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-08 10:42:03 -0800 |
commit | 1df3b65acccaee908b6a579640f5060094fad8c0 (patch) | |
tree | a4bedd51a590990537362d9074ec7086c73e3047 /activesupport/test | |
parent | 9643243204fab063630380f42fcd4b8160044104 (diff) | |
download | rails-1df3b65acccaee908b6a579640f5060094fad8c0.tar.gz rails-1df3b65acccaee908b6a579640f5060094fad8c0.tar.bz2 rails-1df3b65acccaee908b6a579640f5060094fad8c0.zip |
use === so that regular expressions are not required
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/file_watcher_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activesupport/test/file_watcher_test.rb b/activesupport/test/file_watcher_test.rb index 54aa9f92f1..3e577df5af 100644 --- a/activesupport/test/file_watcher_test.rb +++ b/activesupport/test/file_watcher_test.rb @@ -21,6 +21,16 @@ class FileWatcherTest < ActiveSupport::TestCase end end + def test_use_triple_equals + fw = ActiveSupport::FileWatcher.new + called = [] + fw.watch("some_arbitrary_file.rb") do |file| + called << "omg" + end + fw.trigger(%w{ some_arbitrary_file.rb }) + assert_equal ['omg'], called + end + def test_one_change @backend.trigger("app/assets/main.scss" => :changed) assert_equal({:changed => ["app/assets/main.scss"]}, @payload.first) |