{"_id":"545c2b9fe93d95100059ec3c","user":"54471f91beb6320800da6f75","is_link":false,"version":{"_id":"54471fc9e12a270800028adf","__v":10,"project":"54471fc9e12a270800028adc","createdAt":"2014-10-22T03:08:57.750Z","releaseDate":"2014-10-22T03:08:57.750Z","categories":["54471fc9e12a270800028ae0","5447b9e7b96a63140077d747","5447be130319802200fc0620","5447ed118d7af31a00dd411c","5447ed230319802200fc0702","5448524c4544c30800241f41","544854504544c30800241f4d","544854af4544c30800241f50","544854e74544c30800241f51","54485557c1b42e08005b82bf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":3,"category":{"_id":"544854af4544c30800241f50","version":"54471fc9e12a270800028adf","__v":2,"pages":["5448517a4544c30800241f3d","54471fc9e12a270800028ae2","544853c7c1b42e08005b82b8","545aeb8ade8fad080013261c","545c2b9fe93d95100059ec3c"],"project":"54471fc9e12a270800028adc","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-23T01:06:55.713Z","from_sync":false,"order":0,"slug":"start-here","title":"Start Here"},"project":"54471fc9e12a270800028adc","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-07T02:17:03.879Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":false,"results":{"codes":[]},"try":true,"auth":"never","params":[],"url":""},"isReference":false,"order":4,"body":"The \"SpecsFor File & Live Templates\" ReSharper extension adds some useful file and live templates to ReSharper that make it easier to work with SpecsFor. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ZtrbcNZuSlailltUstiD_screenshot01.JPG\",\n        \"screenshot01.JPG\",\n        \"994\",\n        \"367\",\n        \"#8b4d73\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nFirst, the ***Specs*** file template will generate a skeleton for a simple spec for you:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/BafrvZ8MRfmz7dYdc82a_when-file-template.gif\",\n        \"when-file-template.gif\",\n        \"800\",\n        \"450\",\n        \"#1c6fb6\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, the ***then*** live template will generate the stub of a test case within a spec:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Rg7mZ2pzRGmhu67DOjB7_then-live-template.gif\",\n        \"then-live-template.gif\",\n        \"692\",\n        \"296\",\n        \"#9b39a6\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nFinally, the ***when*** live template will add another spec within an existing file:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Pol1Jh5NSCqhEPo6rekK_when-live-template.gif\",\n        \"when-live-template.gif\",\n        \"692\",\n        \"296\",\n        \"#153385\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nTogether, these three simple templates can help streamline the creation of new test cases with SpecsFor!","excerpt":"","slug":"resharper-templates","type":"basic","title":"ReSharper Templates"}

ReSharper Templates


The "SpecsFor File & Live Templates" ReSharper extension adds some useful file and live templates to ReSharper that make it easier to work with SpecsFor. [block:image] { "images": [ { "image": [ "https://files.readme.io/ZtrbcNZuSlailltUstiD_screenshot01.JPG", "screenshot01.JPG", "994", "367", "#8b4d73", "" ] } ] } [/block] First, the ***Specs*** file template will generate a skeleton for a simple spec for you: [block:image] { "images": [ { "image": [ "https://files.readme.io/BafrvZ8MRfmz7dYdc82a_when-file-template.gif", "when-file-template.gif", "800", "450", "#1c6fb6", "" ] } ] } [/block] Next, the ***then*** live template will generate the stub of a test case within a spec: [block:image] { "images": [ { "image": [ "https://files.readme.io/Rg7mZ2pzRGmhu67DOjB7_then-live-template.gif", "then-live-template.gif", "692", "296", "#9b39a6", "" ] } ] } [/block] Finally, the ***when*** live template will add another spec within an existing file: [block:image] { "images": [ { "image": [ "https://files.readme.io/Pol1Jh5NSCqhEPo6rekK_when-live-template.gif", "when-live-template.gif", "692", "296", "#153385", "" ] } ] } [/block] Together, these three simple templates can help streamline the creation of new test cases with SpecsFor!