Permalink
Browse files

Remove a couple of obsolete files

  • Loading branch information...
1 parent cf982e4 commit a23f8cce7471f4f383d9dd43e4a0958241e3a6a5 @moredip committed Mar 4, 2011
Showing with 0 additions and 58 deletions.
  1. +0 −6 cucumber/env.rb
  2. +0 −52 cucumber/iphonesim.rb
View
@@ -1,6 +0,0 @@
-FRANK_LOCATION = "../../../Frank"
-
-require File.join( File.dirname(__FILE__), "#{FRANK_LOCATION}/cucumber/frank_helper" )
-require 'spec/expectations'
-
-World(FrankHelper)
View
@@ -1,52 +0,0 @@
-require 'uri'
-require 'cgi'
-require 'net/http'
-
-class IPhoneSim
- attr_accessor :iphonesim_path
-
- def self.for_ipad_app( app_path )
- self.new( app_path, "3.2", "ipad" )
- end
-
- def initialize( app_path, sdk, family )
- @iphonesim_path = "iphonesim"
- @app_path = File.expand_path( app_path )
- @sdk = sdk
- @family = family
- end
-
- def launch
- if iphonesim_server_uri
- launch_via_http
- else
- launch_via_command
- end
- end
-
- def relaunch
- launch
- end
-
-
- def launch_via_command
- fork do
- system( %Q|"#{@iphonesim_path}" launch "#{@app_path}" #{@sdk} #{@family}| )
- end
- end
-
- def launch_via_http
- full_request_uri = iphonesim_server_uri.dup
- full_request_uri.query = "app_path=" + CGI.escape( @app_path )
- puts "requesting #{full_request_uri}"
- response = Net::HTTP.get( full_request_uri )
- puts "iphonesim server reponded with:\n#{response}"
- end
-
- def iphonesim_server_uri
- return URI.parse( @iphonesim_path )
- rescue URI::InvalidURIError
- return nil
- end
-
-end

0 comments on commit a23f8cc

Please sign in to comment.