{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/12","id":45097088,"html_url":"https://github.com/Ortus-Solutions/TestBox/pull/12","diff_url":"https://github.com/Ortus-Solutions/TestBox/pull/12.diff","patch_url":"https://github.com/Ortus-Solutions/TestBox/pull/12.patch","issue_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues/12","number":12,"state":"open","locked":false,"title":"Add simple support for Given-When-Then test style syntax","user":{"login":"aliaspooryorik","id":148847,"avatar_url":"https://avatars.githubusercontent.com/u/148847?v=3","gravatar_id":"","url":"https://api.github.com/users/aliaspooryorik","html_url":"https://github.com/aliaspooryorik","followers_url":"https://api.github.com/users/aliaspooryorik/followers","following_url":"https://api.github.com/users/aliaspooryorik/following{/other_user}","gists_url":"https://api.github.com/users/aliaspooryorik/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaspooryorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaspooryorik/subscriptions","organizations_url":"https://api.github.com/users/aliaspooryorik/orgs","repos_url":"https://api.github.com/users/aliaspooryorik/repos","events_url":"https://api.github.com/users/aliaspooryorik/events{/privacy}","received_events_url":"https://api.github.com/users/aliaspooryorik/received_events","type":"User","site_admin":false},"body":"Reference: http://martinfowler.com/bliki/GivenWhenThen.html\r\n\r\nI think it'd be great if TestBox supported the Given-When-Then style of writing tests. For example if my requirements are:\r\n\r\n```\r\nFeature: Given-When-Then syntax idea\r\n  Scenario: I want to promote BDD in the team\r\n    Given: I am using TestBox\r\n      When: I write my tests\r\n        Then: it should read as a given-when-then style of representing tests\r\n```\r\n\r\nIt would be nice if, instead of having multiple nested describe calls, I could write my test using those phases, something like:\r\n\r\n```\r\nfeature(\"Given-When-Then syntax idea\", function() {\r\n  scenario(\"I want to promote BDD in the team\", function() {\r\n    given(\"I am using TestBox\", function() { // setup\r\n      when(\"I write my tests\", function() {\r\n        then(\"it should read as a given-when-then style of representing tests\", function() {\r\n          expect(syntaxSupported).toBeTrue(\"I think this would be nice syntactic sugar\");\r\n        });\r\n      });\r\n    });\r\n  });\r\n});\r\n```\r\n\r\nThe `feature/scenario/given` functions are a simple alias for the existing describe function. \r\nThe `then` function is a simple alias for the existing it function.\r\n","created_at":"2015-09-15T20:19:38Z","updated_at":"2015-09-15T20:19:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/12/commits","review_comments_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/12/comments","review_comment_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues/12/comments","statuses_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/statuses/cde2b25fd850bccdfd09d4b58f9dc7f9f41a35d6","head":{"label":"aliaspooryorik:testbox-133-given-when-then-syntax","ref":"testbox-133-given-when-then-syntax","sha":"cde2b25fd850bccdfd09d4b58f9dc7f9f41a35d6","user":{"login":"aliaspooryorik","id":148847,"avatar_url":"https://avatars.githubusercontent.com/u/148847?v=3","gravatar_id":"","url":"https://api.github.com/users/aliaspooryorik","html_url":"https://github.com/aliaspooryorik","followers_url":"https://api.github.com/users/aliaspooryorik/followers","following_url":"https://api.github.com/users/aliaspooryorik/following{/other_user}","gists_url":"https://api.github.com/users/aliaspooryorik/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaspooryorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaspooryorik/subscriptions","organizations_url":"https://api.github.com/users/aliaspooryorik/orgs","repos_url":"https://api.github.com/users/aliaspooryorik/repos","events_url":"https://api.github.com/users/aliaspooryorik/events{/privacy}","received_events_url":"https://api.github.com/users/aliaspooryorik/received_events","type":"User","site_admin":false},"repo":{"id":42515197,"name":"TestBox","full_name":"aliaspooryorik/TestBox","owner":{"login":"aliaspooryorik","id":148847,"avatar_url":"https://avatars.githubusercontent.com/u/148847?v=3","gravatar_id":"","url":"https://api.github.com/users/aliaspooryorik","html_url":"https://github.com/aliaspooryorik","followers_url":"https://api.github.com/users/aliaspooryorik/followers","following_url":"https://api.github.com/users/aliaspooryorik/following{/other_user}","gists_url":"https://api.github.com/users/aliaspooryorik/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaspooryorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaspooryorik/subscriptions","organizations_url":"https://api.github.com/users/aliaspooryorik/orgs","repos_url":"https://api.github.com/users/aliaspooryorik/repos","events_url":"https://api.github.com/users/aliaspooryorik/events{/privacy}","received_events_url":"https://api.github.com/users/aliaspooryorik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aliaspooryorik/TestBox","description":"TestBox is a next generation testing framework for ColdFusion (CFML) that is based on BDD (Behavior Driven Development) for providing a clean obvious syntax for writing tests. It also includes MockBox, our mocking and stubbing framework.","fork":true,"url":"https://api.github.com/repos/aliaspooryorik/TestBox","forks_url":"https://api.github.com/repos/aliaspooryorik/TestBox/forks","keys_url":"https://api.github.com/repos/aliaspooryorik/TestBox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliaspooryorik/TestBox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliaspooryorik/TestBox/teams","hooks_url":"https://api.github.com/repos/aliaspooryorik/TestBox/hooks","issue_events_url":"https://api.github.com/repos/aliaspooryorik/TestBox/issues/events{/number}","events_url":"https://api.github.com/repos/aliaspooryorik/TestBox/events","assignees_url":"https://api.github.com/repos/aliaspooryorik/TestBox/assignees{/user}","branches_url":"https://api.github.com/repos/aliaspooryorik/TestBox/branches{/branch}","tags_url":"https://api.github.com/repos/aliaspooryorik/TestBox/tags","blobs_url":"https://api.github.com/repos/aliaspooryorik/TestBox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliaspooryorik/TestBox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliaspooryorik/TestBox/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliaspooryorik/TestBox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliaspooryorik/TestBox/statuses/{sha}","languages_url":"https://api.github.com/repos/aliaspooryorik/TestBox/languages","stargazers_url":"https://api.github.com/repos/aliaspooryorik/TestBox/stargazers","contributors_url":"https://api.github.com/repos/aliaspooryorik/TestBox/contributors","subscribers_url":"https://api.github.com/repos/aliaspooryorik/TestBox/subscribers","subscription_url":"https://api.github.com/repos/aliaspooryorik/TestBox/subscription","commits_url":"https://api.github.com/repos/aliaspooryorik/TestBox/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliaspooryorik/TestBox/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliaspooryorik/TestBox/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliaspooryorik/TestBox/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliaspooryorik/TestBox/contents/{+path}","compare_url":"https://api.github.com/repos/aliaspooryorik/TestBox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliaspooryorik/TestBox/merges","archive_url":"https://api.github.com/repos/aliaspooryorik/TestBox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliaspooryorik/TestBox/downloads","issues_url":"https://api.github.com/repos/aliaspooryorik/TestBox/issues{/number}","pulls_url":"https://api.github.com/repos/aliaspooryorik/TestBox/pulls{/number}","milestones_url":"https://api.github.com/repos/aliaspooryorik/TestBox/milestones{/number}","notifications_url":"https://api.github.com/repos/aliaspooryorik/TestBox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliaspooryorik/TestBox/labels{/name}","releases_url":"https://api.github.com/repos/aliaspooryorik/TestBox/releases{/id}","created_at":"2015-09-15T11:30:46Z","updated_at":"2015-09-15T11:30:46Z","pushed_at":"2015-09-15T20:16:21Z","git_url":"git://github.com/aliaspooryorik/TestBox.git","ssh_url":"git@github.com:aliaspooryorik/TestBox.git","clone_url":"https://github.com/aliaspooryorik/TestBox.git","svn_url":"https://github.com/aliaspooryorik/TestBox","homepage":"www.coldbox.org","size":1504,"stargazers_count":0,"watchers_count":0,"language":"ColdFusion","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ortus-Solutions:development","ref":"development","sha":"cb1b91fa991b1f125554fe66e8bd2447946f305e","user":{"login":"Ortus-Solutions","id":838105,"avatar_url":"https://avatars.githubusercontent.com/u/838105?v=3","gravatar_id":"","url":"https://api.github.com/users/Ortus-Solutions","html_url":"https://github.com/Ortus-Solutions","followers_url":"https://api.github.com/users/Ortus-Solutions/followers","following_url":"https://api.github.com/users/Ortus-Solutions/following{/other_user}","gists_url":"https://api.github.com/users/Ortus-Solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/Ortus-Solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ortus-Solutions/subscriptions","organizations_url":"https://api.github.com/users/Ortus-Solutions/orgs","repos_url":"https://api.github.com/users/Ortus-Solutions/repos","events_url":"https://api.github.com/users/Ortus-Solutions/events{/privacy}","received_events_url":"https://api.github.com/users/Ortus-Solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":18945285,"name":"TestBox","full_name":"Ortus-Solutions/TestBox","owner":{"login":"Ortus-Solutions","id":838105,"avatar_url":"https://avatars.githubusercontent.com/u/838105?v=3","gravatar_id":"","url":"https://api.github.com/users/Ortus-Solutions","html_url":"https://github.com/Ortus-Solutions","followers_url":"https://api.github.com/users/Ortus-Solutions/followers","following_url":"https://api.github.com/users/Ortus-Solutions/following{/other_user}","gists_url":"https://api.github.com/users/Ortus-Solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/Ortus-Solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ortus-Solutions/subscriptions","organizations_url":"https://api.github.com/users/Ortus-Solutions/orgs","repos_url":"https://api.github.com/users/Ortus-Solutions/repos","events_url":"https://api.github.com/users/Ortus-Solutions/events{/privacy}","received_events_url":"https://api.github.com/users/Ortus-Solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ortus-Solutions/TestBox","description":"TestBox is a next generation testing framework for ColdFusion (CFML) that is based on BDD (Behavior Driven Development) for providing a clean obvious syntax for writing tests. It also includes MockBox, our mocking and stubbing framework.","fork":false,"url":"https://api.github.com/repos/Ortus-Solutions/TestBox","forks_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/forks","keys_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/teams","hooks_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/hooks","issue_events_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues/events{/number}","events_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/events","assignees_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/assignees{/user}","branches_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/branches{/branch}","tags_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/tags","blobs_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/statuses/{sha}","languages_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/languages","stargazers_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/stargazers","contributors_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/contributors","subscribers_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/subscribers","subscription_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/subscription","commits_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/contents/{+path}","compare_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/merges","archive_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/downloads","issues_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues{/number}","pulls_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls{/number}","milestones_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/milestones{/number}","notifications_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/labels{/name}","releases_url":"https://api.github.com/repos/Ortus-Solutions/TestBox/releases{/id}","created_at":"2014-04-19T16:25:26Z","updated_at":"2015-07-13T14:37:27Z","pushed_at":"2015-09-02T12:52:26Z","git_url":"git://github.com/Ortus-Solutions/TestBox.git","ssh_url":"git@github.com:Ortus-Solutions/TestBox.git","clone_url":"https://github.com/Ortus-Solutions/TestBox.git","svn_url":"https://github.com/Ortus-Solutions/TestBox","homepage":"www.coldbox.org","size":1504,"stargazers_count":9,"watchers_count":9,"language":"ColdFusion","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":2,"forks":14,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/12"},"html":{"href":"https://github.com/Ortus-Solutions/TestBox/pull/12"},"issue":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues/12"},"comments":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/Ortus-Solutions/TestBox/statuses/cde2b25fd850bccdfd09d4b58f9dc7f9f41a35d6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":128,"deletions":1,"changed_files":2}}