Permalink
Browse files

Small clean up.

  • Loading branch information...
1 parent f1b9d2d commit b8939a17bf677a7580de6e60e88e9e97ec1b4a02 @fabioyamate fabioyamate committed Sep 27, 2011
Showing with 1 addition and 6 deletions.
  1. +1 −5 lib/simple_form.rb
  2. +0 −1 test/form_builder/wrapper_test.rb
View
@@ -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
@@ -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

0 comments on commit b8939a1

Please sign in to comment.