Sha256: f5a5c88103cd40644fa6027c639de37eea64e39dfe3bda8f922d30b216651772

Contents?: true

Size: 1.05 KB

Versions: 20

Compression:

Stored size: 1.05 KB

Contents

require_relative 'test_helper.rb'

include Frank::Cucumber::Launcher
include Frank::Cucumber::FrankHelper

def wait_for_frank_to_come_up
  # orig FrankHelper::wait_for_frank_to_come_up
  # doing nothing
end

describe "frank cucumber launcher" do

  describe "when the path is wrong" do
  
    it 'throws exception when no app path is given' do
      assert_raises(RuntimeError) do
        enforce(nil)
      end
    end

    it 'prints suggestions if available' do
        mock_locator = Mock.new
        mock_locator.expect :guess_possible_app_bundles_for_dir, ['suggestion_1'], ['']
        begin
          enforce(nil, mock_locator)
        rescue RuntimeError => e
          e.message.must_match "suggestion_1"
        end
    end
  end

  describe "when starting the simulator with the specified params" do

    before do
      @simulator_direct_client = Mock.new 
      @simulator_direct_client.expect :relaunch, nil, [] 
    end
    
    it 'selects iphone mode by default' do
      launch_app('test_path', 'X.Y')
      @version.must_equal 'iphone'
    end

  end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
frank-cucumber-0.9.8 test/launcher_test.rb
frank-cucumber-0.9.7 test/launcher_test.rb
frank-cucumber-0.9.6 test/launcher_test.rb
frank-cucumber-0.9.5 test/launcher_test.rb
frank-cucumber-0.9.5.pre8 test/launcher_test.rb
frank-cucumber-0.9.5.pre7 test/launcher_test.rb
frank-cucumber-0.9.5.pre6 test/launcher_test.rb
frank-cucumber-0.9.5.pre5 test/launcher_test.rb
frank-cucumber-0.9.5.pre4 test/launcher_test.rb
frank-cucumber-0.9.5.pre3 test/launcher_test.rb
frank-cucumber-0.9.5.pre2 test/launcher_test.rb
frank-cucumber-0.9.5.pre1 test/launcher_test.rb
frank-cucumber-0.9.4 test/launcher_test.rb
frank-cucumber-0.9.3 test/launcher_test.rb
frank-cucumber-0.9.1 test/launcher_test.rb
frank-cucumber-0.9.0 test/launcher_test.rb
frank-cucumber-0.8.17 test/launcher_test.rb
frank-cucumber-0.8.16 test/launcher_test.rb
frank-cucumber-0.8.15 test/launcher_test.rb
frank-cucumber-0.8.14 test/launcher_test.rb