Small clean up.

This commit is contained in:
Fabio Yamate 2011-09-27 00:59:06 -03:00
parent f1b9d2dfc3
commit b8939a17bf
2 changed files with 1 additions and 6 deletions

View File

@ -117,11 +117,7 @@ module SimpleForm
# Retrieves a given wrapper
def self.wrapper(name)
if wrapper = @@wrappers[name.to_sym]
wrapper
else
raise WrapperNotFound, "Couldn't find wrapper with name #{name}"
end
@@wrappers[name.to_sym] or raise WrapperNotFound, "Couldn't find wrapper with name #{name}"
end
# Raised when fails to find a given wrapper name

View File

@ -118,7 +118,6 @@ class WrapperTest < ActionView::TestCase
with_form_for @user, :name, :wrapper => "another"
assert_select "section.custom_wrapper div.another_wrapper label"
assert_select "section.custom_wrapper div.another_wrapper input.string"
output_buffer.replace ""
end
end