From b1a62d68e9e867221eb2f96618d3c1ecf542cbe9 Mon Sep 17 00:00:00 2001 From: theduke Date: Sat, 2 Dec 2017 05:00:20 +0100 Subject: [PATCH] (tests) Fix derive_enum test to actually test custom names --- juniper_tests/src/codegen/derive_enum.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/juniper_tests/src/codegen/derive_enum.rs b/juniper_tests/src/codegen/derive_enum.rs index b0f02363..ac31a53a 100644 --- a/juniper_tests/src/codegen/derive_enum.rs +++ b/juniper_tests/src/codegen/derive_enum.rs @@ -9,7 +9,7 @@ use juniper::{self, FromInputValue, GraphQLType, InputValue, ToInputValue}; enum SomeEnum { Regular, - #[graphql(name = "FULL", description = "field descr", deprecated = "depr")] + #[graphql(name = "full", description = "field descr", deprecated = "depr")] Full, } @@ -33,9 +33,9 @@ fn test_derived_enum() { ); // Test FULL variant. - assert_eq!(SomeEnum::Full.to_input_value(), InputValue::String("FULL".into())); + assert_eq!(SomeEnum::Full.to_input_value(), InputValue::String("full".into())); assert_eq!( - FromInputValue::from_input_value(&InputValue::String("FULL".into())), + FromInputValue::from_input_value(&InputValue::String("full".into())), Some(SomeEnum::Full) ); }