Add test for loading the chain specs (#6028)

* Add test for loading the json chain specs

* Remove test on Ethereum specs as it already exists
This commit is contained in:
Axel Chalon 2017-07-10 19:26:10 +02:00 committed by Gav Wood
parent 56c275b0cb
commit d970237658
1 changed files with 13 additions and 0 deletions

View File

@ -467,6 +467,19 @@ mod tests {
assert!(Spec::load(::std::env::temp_dir(), &[] as &[u8]).is_err());
}
#[test]
fn all_spec_files_valid() {
Spec::new_test();
Spec::new_null();
Spec::new_test_constructor();
Spec::new_instant();
Spec::new_test_round();
Spec::new_test_tendermint();
Spec::new_validator_safe_contract();
Spec::new_validator_contract();
Spec::new_validator_multi();
}
#[test]
fn test_chain() {
let test_spec = Spec::new_test();