test/unit/peddler/errors/test_builder.rb in peddler-2.0.4 vs test/unit/peddler/errors/test_builder.rb in peddler-2.1.0
- old
+ new
@@ -26,19 +26,19 @@
OpenStruct.new(body: body)
)
super
end
- def test_generates_custom_error
+ def test_custom_error
assert_includes @error.class.name, @code
end
- def test_provides_message
+ def test_message
assert_equal @message, @error.message
end
- def test_provides_cause
+ def test_cause
assert_equal @cause, @error.cause
end
end
class CausedByInternalServerError < TestPeddlerErrorsBuilder
@@ -56,10 +56,10 @@
OpenStruct.new(body: body)
)
super
end
- def test_returns_nothing
+ def test_that_it_returns_nothing
assert_nil @error
end
end
end