Permalink
Browse files

We don't need to be this permissive with our API.

  • Loading branch information...
1 parent 05f20f0 commit ee5c8c903c1f95d17ea7f571362f471072b1b2b2 @benhamill benhamill committed Apr 3, 2012
Showing with 0 additions and 56 deletions.
  1. +0 −4 lib/muddle/configuration.rb
  2. +0 −52 spec/configuration_spec.rb
@@ -29,10 +29,6 @@ def initialize(options = {}, &block)
:with_html_string => true,
:adapter => :hpricot
}
-
- if block_given?
- configure &block
- end
end
# Set config vars
View
@@ -18,58 +18,6 @@
end
end
- it "accepts parameters at instantiation and sets options" do
- pending
- config = Muddle::Configuration.new(
- :parse_with_premailer => false,
- :insert_boilerplate_styles => false,
- :insert_boilerplate_css => false,
- :insert_boilerplate_attributes => false,
- :validate_html => false,
- :generate_plain_text => true,
- :premailer_options => {:line_length => 50}
- )
-
- config.parse_with_premailer.should be_false
- config.insert_boilerplate_styles.should be_false
- config.insert_boilerplate_css.should be_false
- config.insert_boilerplate_attributes.should be_false
- config.validate_html.should be_false
- config.generate_plain_text.should be_true
- config.premailer_options.should eql({
- :remove_comments => true,
- :with_html_string => true,
- :adapter => :hpricot,
- :line_length => 50
- })
- end
-
-
- it "accepts a block at instantiation and sets options" do
- config = Muddle::Configuration.new do |config|
- config.parse_with_premailer = false
- config.insert_boilerplate_styles = false
- config.insert_boilerplate_css = false
- config.insert_boilerplate_attributes = false
- config.validate_html = false
- config.generate_plain_text = true
- config.premailer_options[:line_length] = 50
- end
-
- config.parse_with_premailer.should be_false
- config.insert_boilerplate_styles.should be_false
- config.insert_boilerplate_css.should be_false
- config.insert_boilerplate_attributes.should be_false
- config.validate_html.should be_false
- config.generate_plain_text.should be_true
- config.premailer_options.should eql({
- :remove_comments => true,
- :with_html_string => true,
- :adapter => :hpricot,
- :line_length => 50
- })
- end
-
it "accepts a block to configure and sets options" do
config = Muddle::Configuration.new
config.configure do |config|

0 comments on commit ee5c8c9

Please sign in to comment.