search for: test_this

Displaying 2 results from an estimated 2 matches for "test_this".

Did you mean: test_that
2006 Apr 11
11
I can''t get rails to see my plugin. How can I this?
I''m trying to produce a plugin to help me with my page caching woes. I can''t seem to get rails to see my method within the plugin. This is my first attempt at a plugin so I''m sure I''m missing something. I''ve created a directory /vendor/lib/plugins/broom_stick/. I then created an init.rb file with: require ''broom_stick'' I then
2006 Jul 20
0
possible file upload bug in integration test
...o alias local_path path define_method(:original_filename) { filename } define_method(:content_type) { content_type } end return t end # a JPEG helper def uploaded_jpeg(path, filename=nil) uploaded_file(path, ''image/jpeg'', filename) end def test_this file = uploaded_jpeg("/tmp/foo.jpg") post "/images/post", :file => file end When i did this, each time the post was done, the ''file'' parameter was stringified instead of passing in the actual file. This works fine in the functional test equiv...