Hi, I am trying to use Rspec together with FunFX for Flex testing. To ease the number of tests and the functionality each test does, I would like to run all the it &quot;shoulds...&quot; in sequence.<br><br>This works just fine, but the creation of FunFX is created after each it &quot;should...&quot; and no wonder since I create it in the before method.<br>
<br>But my question is where should I put the two lines of code that creates an instance of FunFx so that all the it &quot;should .. &quot; uses the same @flex instance, that should be created just once in for each describe?<br>
<br>describe &quot;DemoApp&quot; do<br>&nbsp; before do<br>&nbsp;&nbsp;&nbsp; browser.goto(DEMO_APP)<br>&nbsp;&nbsp;&nbsp; @flex = browser.flex_app(&#39;DemoAppId&#39;, &#39;DemoAppName&#39;)<br>&nbsp; end<br>&nbsp; <br>&nbsp; it &quot;should click on a checkbox&quot; do<br>
&nbsp;&nbsp; # do somthing<br>&nbsp; end<br>&nbsp; <br>&nbsp; it &quot;should assert that it is checked&quot; do<br>&nbsp;&nbsp;&nbsp; # do something<br>&nbsp; end<br>end<br><br>- Peter<br>