spec/features/rule_spec.rb in marty-2.5.8 vs spec/features/rule_spec.rb in marty-2.5.9

- old
+ new

@@ -220,35 +220,36 @@ # bad rhs - delorean compile will raise fill_in(:computed_guards, with: "x = true\ny = false\nvar = 123j\nz = true") press('OK') wait_for_ajax - exp = "Computed - Error in rule 'abc' field 'computed_guards' (line 3): "\ - 'Syntax error' + exp = "Computed - Error in rule 'abc' field 'computed_guards' "\ + '(attribute var): Syntax error' expect(page).to have_content(exp) sleep 2 fill_in(:computed_guards, with: %Q(var1 = "good"\nvar2 = 123\nvar3 = 123j)) press('OK') wait_for_ajax - exp = "Computed - Error in rule 'abc' field 'computed_guards' (line 3): "\ - 'Syntax error' + exp = "Computed - Error in rule 'abc' field 'computed_guards' "\ + '(attribute var3): Syntax error' expect(page).to have_content(exp) sleep 2 fill_in(:computed_guards, with: '') fill_in(:results, with: %Q(var3 = 123j\nvar1 = "good"\nvar2 = 123)) press('OK') wait_for_ajax - exp = "Computed - Error in rule 'abc' field 'results' (line 1): "\ + exp = "Computed - Error in rule 'abc' field 'results' (attribute var3): "\ 'Syntax error' expect(page).to have_content(exp) sleep 2 fill_in(:results, with: %Q(abc = "def"\ndef = 5\nxyz = def+10\nsadf asdf lsf)) press('OK') wait_for_ajax - exp = "Computed - Error in rule 'abc' field 'results' (line 4): Syntax error" + exp = "Computed - Error in rule 'abc' field 'results' (attribute xyz): "\ + 'Syntax error' expect(page).to have_content(exp) sleep 2 fill_in(:results, with: %Q(abc = "def"\ndef = "abc"\nklm = "3"\nabc = "xyz"))