Sha256: 21f73ac683a78ab9d20b091fc609981fd948507eccd4246f75dc98faa83575ec

Contents?: true

Size: 798 Bytes

Versions: 3

Compression:

Stored size: 798 Bytes

Contents

require File.expand_path(File.join(__FILE__, '..', '..', 'spec_helper'))
require File.expand_path(File.join(__FILE__, '..', '..', '..', 'bin', 'calabash-ios-sim'))
require 'calabash-cucumber/utils/simulator_accessibility'
require 'calabash-cucumber/wait_helpers'

include Calabash::Cucumber::WaitHelpers

describe 'calabash ios sim cli' do

  it 'should deprecate the sim_quit method' do
    out = capture_stderr do
      quit_sim
    end
    tokens = out.string.split("\n")
    puts tokens
    expect(tokens[1]).to be == "WARN: deprecated '0.9.169' - 'use Calabash::Cucumber::SimulatorAccessibility.quit_simulator'"
  end

  it 'should be able to reset the content and settings of the simulator' do
    calabash_sim_reset
    expect(existing_simulator_support_sdk_dirs.count).to be == 1
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
calabash-cucumber-0.10.0.pre1 spec/bin/calabash_ios_sim_spec.rb
calabash-cucumber-0.9.169 spec/bin/calabash_ios_sim_spec.rb
calabash-cucumber-0.9.169.pre6 spec/bin/calabash_ios_sim_spec.rb