Skip to content

Commit

Permalink
Replace @location with location as deliver_method_spec.rb now uses rs…
Browse files Browse the repository at this point in the history
…pec's let(:location) to define it in all tests.
  • Loading branch information
davidcornu committed Oct 7, 2012
1 parent f0d0028 commit 7b3b1ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/letter_opener/delivery_method_spec.rb
Expand Up @@ -177,9 +177,9 @@
end
attachments[File.basename(__FILE__)] = File.read(__FILE__)
end
attachment_path = Dir["#{@location}/*/attachments/#{File.basename(__FILE__)}"].first
attachment_path = Dir["#{location}/*/attachments/#{File.basename(__FILE__)}"].first
File.exists?(attachment_path).should == true
text = File.read(Dir["#{@location}/*/plain.html"].first)
text = File.read(Dir["#{location}/*/plain.html"].first)
text.should include(File.basename(__FILE__))
end

Expand All @@ -195,9 +195,9 @@
body "Here's an image: <img src='#{url}' />"
end
end
attachment_path = Dir["#{@location}/*/attachments/#{File.basename(__FILE__)}"].first
attachment_path = Dir["#{location}/*/attachments/#{File.basename(__FILE__)}"].first
File.exists?(attachment_path).should == true
text = File.read(Dir["#{@location}/*/rich.html"].first)
text = File.read(Dir["#{location}/*/rich.html"].first)
mail.parts[0].body.should include(mail.attachments[0].url)
text.should_not include(mail.attachments[0].url)
text.should include("attachments/#{File.basename(__FILE__)}")
Expand Down

0 comments on commit 7b3b1ee

Please sign in to comment.