Skip to content

Commit

Permalink
re-simplify mailer_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Dec 29, 2014
1 parent d206c2c commit b46da40
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/lib/roadie/rails/mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
module Roadie
module Rails
describe Mailer do
base_mailer = Class.new do
some_mailer = Class.new do
cattr_accessor :asset_host

include Mailer

def initialize(email = nil)
@email = email
end
Expand All @@ -16,10 +18,6 @@ def mail(options = {})
end
end

some_mailer = Class.new(base_mailer) do
include Mailer
end

describe "#roadie_options" do
it "returns Rails' roadie config" do
allow(::Rails).to receive_message_chain(:application, :config, :roadie).and_return "roadie config"
Expand Down

0 comments on commit b46da40

Please sign in to comment.