Skip to content

Commit

Permalink
Refactor to make hound happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Apr 21, 2016
1 parent d1cc373 commit f7ecc2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/shoulda/context/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ def create_test_from_should_hash(should)
end

test_methods[test_unit_class][test_name.to_s] = true
source_location = should[:block].source_location
file, line_no = should[:block].source_location
context = self
test_unit_class.class_eval <<-end_eval, source_location[0], source_location[1]
test_unit_class.class_eval <<-end_eval, file, line_no
define_method test_name do
@shoulda_context = context
begin
Expand Down Expand Up @@ -481,7 +481,7 @@ def test_name_prefix
end

def method_missing(method, *args, &blk)
created_method = test_unit_class.send(method, *args, &blk)
test_unit_class.send(method, *args, &blk)
end
end
end
Expand Down

0 comments on commit f7ecc2e

Please sign in to comment.