Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
fphilipe committed Nov 16, 2013
1 parent 5bf2641 commit 8c993af
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 37 deletions.
8 changes: 0 additions & 8 deletions spec/fixtures/html.rb
Expand Up @@ -30,13 +30,5 @@ def with_css_links(*files)

TEMPLATE % links.join
end

def with_no_css_link
with_css_links
end

def with_style_block
TEMPLATE % '<style type="text/css">p { color: red; }</style>'
end
end
end
4 changes: 2 additions & 2 deletions spec/lib/hook_spec.rb
Expand Up @@ -11,7 +11,7 @@ def html_string
end
end

let(:message) { Fixtures::Message.with_body(:html) }
let(:message) { Fixtures::Message.with_parts(:html) }
let(:processed_message) { run_hook(message) }

it 'inlines the CSS' do
Expand All @@ -30,7 +30,7 @@ def html_string
end

context 'when message contains no html' do
let(:message) { Fixtures::Message.with_body(:text) }
let(:message) { Fixtures::Message.with_parts(:text) }

it 'does not modify the message' do
expect { run_hook(message) }.to_not change(message, :html_string)
Expand Down
5 changes: 0 additions & 5 deletions spec/stubs/dummy.rb

This file was deleted.

22 changes: 0 additions & 22 deletions spec/stubs/rails.rb
@@ -1,26 +1,8 @@
require 'stubs/dummy'

class Logger
def self.try(*args); end
end

module Rails
extend self

module Configuration
extend self

module Middleware
extend self

def include?(what)
false
end
end

def middleware
Middleware
end
end

module Env
Expand Down Expand Up @@ -51,10 +33,6 @@ def configuration
Configuration
end

def logger
Logger
end

def application
Application
end
Expand Down

0 comments on commit 8c993af

Please sign in to comment.