Function rspec::run
[−]
[src]
pub fn run<T>(suite: &Suite<T>) where
T: Clone + Send + Sync + Debug,
A wrapper for conveniently running a test suite with the default configuration with considerebly less glue-code.
Examples
rspec::run(&rspec::given("a scenario", (), |ctx| { ctx.when("...", |ctx| { // ... }); ctx.then("...", |env| { /* ... */ }); }));