Last active
December 15, 2015 05:39
-
-
Save rjmackay/5210622 to your computer and use it in GitHub Desktop.
Snippets for Ushahidi v3 blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Listing All Forms | |
Given that I want to get all "Forms" | |
When I request "/forms" | |
Then the response is JSON | |
And the response has a "count" property | |
And the type of the "count" property is numeric | |
Then the response status code should be 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct script access.'); | |
/** | |
* Initial core ushahidi structure | |
*/ | |
class Migration_3_0_20130320172622 extends Minion_Migration_Base { | |
/** | |
* Run queries needed to apply this migration | |
* | |
* @param Kohana_Database $db Database connection | |
*/ | |
public function up(Kohana_Database $db) | |
{ | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment