Skip to content

Commit

Permalink
Merge branch 'kohana_3' of github.com:gallery/gallery3 into kohana_3
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed May 31, 2013
2 parents db601d3 + 58b465e commit 45eb206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions modules/gallery/tests/Gallery_Graphics_Test.php
Expand Up @@ -40,7 +40,7 @@ public function test_rotate_jpg_without_options() {
}

/**
* @expectedException Gallery_Exception
* @expectedException Kohana_Exception
*/
public function test_rotate_bad_jpg() {
// Input is a garbled jpg, output is jpg autofit to 300x300
Expand All @@ -49,7 +49,8 @@ public function test_rotate_bad_jpg() {
$options = array("degrees" => 90);
file_put_contents($input_file, Test::lorem_ipsum(200));

// Should get passed to Image library and throw an exception
// Should get passed to Image library and throw an exception.
// Since it's image and not gallery that throws the exception, it's a Kohana_Exception.
GalleryGraphics::rotate($input_file, $output_file, $options, null);
}

Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/tests/Item_Test.php
Expand Up @@ -67,7 +67,7 @@ public function test_move() {
}

/**
* @expectedException Gallery_Exception
* @expectedException ORM_Validation_Exception
*/
public function test_cant_move_parent_into_own_subtree() {
$album1 = Test::random_album(Item::root());
Expand Down

0 comments on commit 45eb206

Please sign in to comment.