spec/premailer-rails3/premailer_spec.rb in premailer-rails3-1.1.0 vs spec/premailer-rails3/premailer_spec.rb in premailer-rails3-1.2.0
- old
+ new
@@ -35,7 +35,14 @@
it 'should pass on the configs' do
PremailerRails.config = { :foo => :bar }
premailer = PremailerRails::Premailer.new('some html')
premailer.instance_variable_get(:'@options')[:foo].should == :bar
end
+
+ it 'should not allow to override with_html_string' do
+ PremailerRails.config = { :with_html_string => false }
+ premailer = PremailerRails::Premailer.new('some html')
+ options = premailer.instance_variable_get(:'@options')
+ options[:with_html_string].should == true
+ end
end
end