           reporter: 'custom reporter'
           testDir: 'test/test_data'
           foo: 'bar'
-        @mycha_configuration = new MychaConfiguration
-          run_options: @user_options
-          default_mycha_options: Mycha.default_mycha_options
-          files: []
+        @mycha_configuration = create_mycha_configuration @user_options
 
       it 'uses the custom stdout', ->
         expect(@mycha_configuration.options.stdout).to.equal 'custom stdout'

          reporter: 'custom reporter'
          testDir: 'test/test_data'
          foo: 'bar'
        @mycha_configuration = new MychaConfiguration
          run_options: @user_options
          default_mycha_options: Mycha.default_mycha_options
          files: []


      it 'uses the custom stdout', ->

    context 'without user options', ->

      beforeEach ->
        @mycha_configuration = create_mycha_configuration()

      it 'uses the default stdout', ->
        expect(@mycha_configuration.options.stdout).to.equal Mycha.default_mycha_options.stdout
