Permalink
Browse files

fixing tests

  • Loading branch information...
1 parent 01d301b commit 36ffa1089a224cf30a46f6e57b14b032ed5e08b6 @gabrielfalcao committed Oct 22, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 tests/functional/test_runner.py
View
12 tests/functional/test_runner.py
@@ -1283,10 +1283,12 @@ def test_many_features_a_file():
filename = syntax_feature_name('many_features_a_file')
runner = Runner(filename)
- expect(runner.run).to.throw(SystemExit, (
+ assert_raises(SystemExit, runner.run)
+
+ assert_stderr_lines(
'Syntax error at: %s\n'
'A feature file must contain ONLY ONE feature!\n' % filename
- ))
+ )
@with_setup(prepare_stderr)
@@ -1296,8 +1298,10 @@ def test_feature_without_name():
filename = syntax_feature_name('feature_without_name')
runner = Runner(filename)
- expect(runner.run).to.throw(SystemExit, (
+ assert_raises(SystemExit, runner.run)
+
+ assert_stderr_lines(
'Syntax error at: %s\n'
'Features must have a name. e.g: "Feature: This is my name"\n'
% filename
- ))
+ )

0 comments on commit 36ffa10

Please sign in to comment.