Permalink
Browse files

check regexp on tests

  • Loading branch information...
1 parent 10993d7 commit f8e3303d61fd57e5f7291b69e3912bf8dfdfea97 @matteosister committed Feb 1, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/CompassElephant/CompassProjectTest.php
@@ -38,7 +38,10 @@ public function testCaller()
{
$this->getCompassProject()->init();
$this->assertNotNull($this->getCommandCaller());
- $this->assertEquals("unchanged sass/screen.scss\nunchanged sass/print.scss\nunchanged sass/ie.scss", $this->getCommandCaller()->checkState()->getOutput());
+ $output = $this->getCommandCaller()->checkState()->getOutput();
+ $this->assertRegExp("/unchanged sass\/screen.scss/", $output);
+ $this->assertRegExp("/unchanged sass\/ie.scss/", $output);
+ $this->assertRegExp("/unchanged sass\/print.scss/", $output);
}
public function testProject()

0 comments on commit f8e3303

Please sign in to comment.