Skip to content

Commit

Permalink
simplified tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toadle authored and yogeshjain999 committed Dec 21, 2022
1 parent e09495f commit a94e412
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/hash_bindings_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ class SongWithRepresenter < ::Song
end

it "will not fail if given an empty hash value and will return FRAGMENT_NOT_FOUND" do
not_failed = true
result = nil
begin
result = @property.read(nil, "song")
rescue NoMethodError
not_failed = false
end
assert not_failed
assert_equal Representable::Binding::FragmentNotFound, result
assert_equal Representable::Binding::FragmentNotFound, @property.read(nil, "song")
end
end
end
Expand Down

0 comments on commit a94e412

Please sign in to comment.