Created
November 30, 2011 17:54
-
-
Save enriclluelles/1410015 to your computer and use it in GitHub Desktop.
Spinach step to test file upload with plupload and the js driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When 'I add some pictures' do | |
path = File.expand_path(File.join(Rails.root, 'test', 'fixtures', 'dummy_image.png')) | |
find("input[type=file]").set(path) | |
page.execute_script("App.Uploads.uploader.start()") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment