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 "shoulds..." in sequence.<br><br>This works just fine, but the creation of FunFX is created after each it "should..." 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 "should .. " uses the same @flex instance, that should be created just once in for each describe?<br>
<br>describe "DemoApp" do<br> before do<br> browser.goto(DEMO_APP)<br> @flex = browser.flex_app('DemoAppId', 'DemoAppName')<br> end<br> <br> it "should click on a checkbox" do<br>
# do somthing<br> end<br> <br> it "should assert that it is checked" do<br> # do something<br> end<br>end<br><br>- Peter<br>