Skip to content

Commit a94e412

Browse files
toadleyogeshjain999
authored andcommitted
simplified tests
1 parent e09495f commit a94e412

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/hash_bindings_test.rb

+1-9
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,7 @@ class SongWithRepresenter < ::Song
2929
end
3030

3131
it "will not fail if given an empty hash value and will return FRAGMENT_NOT_FOUND" do
32-
not_failed = true
33-
result = nil
34-
begin
35-
result = @property.read(nil, "song")
36-
rescue NoMethodError
37-
not_failed = false
38-
end
39-
assert not_failed
40-
assert_equal Representable::Binding::FragmentNotFound, result
32+
assert_equal Representable::Binding::FragmentNotFound, @property.read(nil, "song")
4133
end
4234
end
4335
end

0 commit comments

Comments
 (0)