Commit 88b616e1 by Jon Yurek

Check for the image in the basic scenario.

parent 9d225cf6
...@@ -30,4 +30,4 @@ Feature: Running paperclip in a Rails app ...@@ -30,4 +30,4 @@ Feature: Running paperclip in a Rails app
And I attach the file "test/fixtures/5k.png" to "user_avatar" And I attach the file "test/fixtures/5k.png" to "user_avatar"
And I press "Submit" And I press "Submit"
Then I should see "Name: something" Then I should see "Name: something"
And I save and open the page And I should see an image with a path of "/system/avatars/1/original/5k.png"
Then %r{I should see an image with a path of "([^"]*)"} do |path|
page.should have_css("img[src^='#{path}']")
end
...@@ -4,7 +4,5 @@ APP_NAME = 'testapp'.freeze ...@@ -4,7 +4,5 @@ APP_NAME = 'testapp'.freeze
CUC_RAILS_ROOT = File.join(TEMP_ROOT, APP_NAME).freeze CUC_RAILS_ROOT = File.join(TEMP_ROOT, APP_NAME).freeze
Before do Before do
FileUtils.rm_rf(TEMP_ROOT)
FileUtils.mkdir_p(CUC_RAILS_ROOT)
Dir.chdir(PROJECT_ROOT) Dir.chdir(PROJECT_ROOT)
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment