Skip to content

Commit

Permalink
Check for the image in the basic scenario.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jul 21, 2010
1 parent 9d225cf commit 88b616e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/rails.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 press "Submit"
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"
3 changes: 3 additions & 0 deletions features/step_definitions/html_steps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Then %r{I should see an image with a path of "([^"]*)"} do |path|
page.should have_css("img[src^='#{path}']")
end
2 changes: 0 additions & 2 deletions features/support/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
CUC_RAILS_ROOT = File.join(TEMP_ROOT, APP_NAME).freeze

Before do
FileUtils.rm_rf(TEMP_ROOT)
FileUtils.mkdir_p(CUC_RAILS_ROOT)
Dir.chdir(PROJECT_ROOT)
end

0 comments on commit 88b616e

Please sign in to comment.