Sha256: 19171d35ef7a928ab8057bdd8c60da06c1d4e8916ea5aab742a480b8dd337272

Contents?: true

Size: 856 Bytes

Versions: 4

Compression:

Stored size: 856 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'

base = File.expand_path(ARGV[0])
FileUtils.mkdir_p(File.join(base, 'features', 'support'))
File.open(File.join(base, 'features', 'support', 'env.rb'), 'w') do |f|
  f.puts "require 'icuke/cucumber'"
  f.puts "World(ICukeWorld)"
end
File.open(File.join(base, 'features', 'example.feature'), 'w') do |f|
  f.puts <<-EOS
Feature: iPhone integration tests
  In order to test my iphone application
  As a developer
  I want cucumber to be able to drive the simulator
  
  Background:
    Given "Universal.xcodeproj" is loaded in the iphone simulator
  
  Scenario:
    When I tap "Show Test Modal"
    Then I should see "Lorem ipsum dolor"
    But I should not see "Fusce sem nisi"
    When I scroll down to "Fusce sem nisi"
    Then I should see "Fusce sem nisi"
    But I should not see "Lorem ipsum dolor"
  EOS
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iCuke-0.7.0 bin/icuke
iCuke-0.6.6 bin/icuke
iCuke-0.6.5 bin/icuke
iCuke-0.6.4 bin/icuke