summaryrefslogtreecommitdiff
path: root/src/bindings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings.rs')
-rw-r--r--src/bindings.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bindings.rs b/src/bindings.rs
index 84b331b..617d725 100644
--- a/src/bindings.rs
+++ b/src/bindings.rs
@@ -410,11 +410,11 @@ mod test_bindings {
#[test]
fn adds_from_yaml() {
let yaml = "
-- given: I am Tomjon
+- GIVEN: I am Tomjon
function: set_name
- when: I declare myself king
- function: declare_king
-- then: there is applause
+ Function: declare_king
+- tHEn: there is applause
function: check_for_applause
";
let mut bindings = Bindings::new();
@@ -429,9 +429,9 @@ mod test_bindings {
#[test]
fn add_from_yaml_notices_multiple_keywords() {
let yaml = "
-- given: I am Tomjon
- when: I am indeed Tomjon
- function: set_name
+- Given: I am Tomjon
+ wheN: I am indeed Tomjon
+ FUNCTION: set_name
";
match Bindings::new().add_from_yaml(&yaml) {
Ok(_) => unreachable!(),