File: another_shared_examples_spec.pl

package info (click to toggle)
libtest-spec-perl 0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 252 kB
  • sloc: perl: 2,050; makefile: 2
file content (28 lines) | stat: -rwxr-xr-x 840 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env perl
#
# another_shared_examples_spec.pl
#
# Test cases for Test::Spec shared example definition and inclusion.
# 
# This spec requires a shared example group that is expected to already
# have been defined in shared_examples_spec.pl.
#
########################################################################
#
package Testcase::Spec::AnotherSharedExamplesSpec;
use Test::Spec;
use FindBin qw($Bin);
BEGIN { require "$Bin/test_helper.pl" };

spec_helper 'shared_examples_spec.pl';

describe "A context in a second spec importing an example group defined in another package" => sub {
  it_should_behave_like "example group";
#   it "can take at least one example";
#   it "can take more than one example";
#   describe "with an inner block" =>
#     it "nests properly";
#   it "can be reopened";
};

runtests unless caller;