features/steps/dragonfly_steps.rb in dragonfly-0.3.6 vs features/steps/dragonfly_steps.rb in dragonfly-0.3.7

- old
+ new

@@ -41,18 +41,18 @@ Then /the response should have mime-type '(.+?)'/ do |mime_type| @response.headers['Content-Type'].should == mime_type end -Then "the image should have width '(.+?)'" do |width| +Then /^the image should have width '(.+?)'$/ do |width| @response.body.should have_width(width.to_i) end -Then "the image should have height '(.+?)'" do |height| +Then /^the image should have height '(.+?)'$/ do |height| @response.body.should have_height(height.to_i) end -Then "the image should have format '(.+?)'" do |format| +Then /^the image should have format '(.+?)'$/ do |format| @response.body.should have_format(format) end Then /^the response should have the same content as the file "([^\"]*)"$/ do |name| @response.body.should == $app.fetch(TEMP_FILES[name]).data