teamcapybara--capybara/spec
Thorbjørn Hermansen fe6f5a1bde Wrote failing specs which highlights missing content-type with rack test driver
Don't know if this could have been written any better, guess it can as
this is my first "deep" look into Capybara. The problem is found in the
Capybara::Driver::RackTest; it doesn't forward the content type of the
file being uplloaded to Rack::Test::UploadedFile.new. UploadFile's
initializer sets the content type to text/plain as a default.

This will make for instance Paperclip's attachment validation fail when
testing with Cucumber and Capybara even though we are uploading a type
which should pass.
2010-01-07 23:43:11 +01:00
..
driver Pulled out find/have methods into Searchable module to be shared by Session and Node(for relative searching) 2009-12-24 00:41:34 -05:00
dsl Wrote failing specs which highlights missing content-type with rack test driver 2010-01-07 23:43:11 +01:00
fixtures Wrote failing specs which highlights missing content-type with rack test driver 2010-01-07 23:43:11 +01:00
public has_*? methods now autowait for content 2010-01-01 19:36:45 +01:00
session Run driver spec as remote instead 2009-12-19 12:40:08 +01:00
views Differentiate between source and body 2010-01-01 23:58:59 +01:00
capybara_spec.rb Reduce timeout for specs so they run faster 2010-01-01 18:45:30 +01:00
drivers_spec.rb Differentiate between source and body 2010-01-01 23:58:59 +01:00
dsl_spec.rb Merge remote branch 'denro/evaluate_script' 2009-12-12 21:56:32 +01:00
save_and_open_page_spec.rb spec bug fix 2009-11-22 18:58:43 +01:00
searchable_spec.rb Moved has_*? back to session from searchable 2010-01-01 18:29:30 +01:00
server_spec.rb Server is smarter about choosing open port, Closes #4 2009-12-13 14:33:14 +01:00
session_spec.rb Differentiate between source and body 2010-01-01 23:58:59 +01:00
session_with_headers_support_spec.rb Session integration & specs for response_headers 2009-12-18 13:33:36 -05:00
session_with_javascript_support_spec.rb Differentiate between source and body 2010-01-01 23:58:59 +01:00
session_without_headers_support_spec.rb Session integration & specs for response_headers 2009-12-18 13:33:36 -05:00
session_without_javascript_support_spec.rb Session#locate - return node identified by locator or raise ElementNotFound(using desc) 2009-12-31 14:04:38 -05:00
spec_helper.rb Reduce timeout for specs so they run faster 2010-01-01 18:45:30 +01:00
test_app.rb Wrote failing specs which highlights missing content-type with rack test driver 2010-01-07 23:43:11 +01:00
wait_until_spec.rb Provides timeout similar to standard library Timeout, but avoids threads 2009-12-31 13:56:23 -05:00
xpath_spec.rb Expose append and prepend as public for xpath 2009-12-13 15:02:25 +01:00