cucumber_test_complete 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/cucumber_test_complete.rb +15 -7
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTBmMGY4NjE3OWI4NGM5YWRmM2E4NmYxZmU1Yzc4OGU1ZDY1ZjY5ZA==
4
+ MmQ4ZTYyNGIzNDIyYjg4OWI2M2QyOWZiZTg0Yjc2ZDE3MjI5ZDdlMA==
5
5
  data.tar.gz: !binary |-
6
- YThkN2RlN2VjOTA0ZjYyNGZjMGFlNTQyZjc2YjUzMjZkODQ3Y2IxNg==
6
+ MzdjN2Y5MzIzYTMxZjMzMDNiYzQ3ZDQ0MmZmNGI1NDg0MzgyZmMwNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2YyZWExNmIyMDc4MWM1NGU3ZTc4ZjQ5NjA3NDQ0ZGQ1MjRkNmJmYzQwYWYy
10
- ZDA5NjhhZmY1NmQ5OWRkZjZmZmYwNzQ1ODM5MzliYzNkYTc5ZTQ5ZmQ2Y2I3
11
- YmExNzk5YzVjNWMyOTI1OWNiOWNjOWIyNTdhNGQ5MzVlNzA3MzA=
9
+ MTQyN2FkMWI1MmVkNTYwYmQ4MGMwM2QyMjI2NmNhMTEzOTVlYjQwZmUyZTM4
10
+ MDY3YzY4OWUwMGIyY2Q1ZTJjZWViNDkxMTkyNDIwOGEyMDg0MjliYjA2ZTA5
11
+ ZmIzYmQzNjJiMjExOWNjMTRjMThhODMwZDBiMWUwNjE2ZTY2ZWU=
12
12
  data.tar.gz: !binary |-
13
- MDQzNGNmNWZmNGIyNTlkODY4MGRlMGZmNzk3NWRhZDY4MWNiMzBjNWZjNjg5
14
- MTk3MTA0YmViY2NiYzAzMzU5YWVhM2M4Y2NjNGJmYTBjZWRlY2FhMTMwZDkz
15
- YmIyZTAwZDViMGQxODRiYmY0NmFjNTcxMDMxNDIzYjRhMDYwOTA=
13
+ NmNhMTE1N2FkNGYyNWNjZTgwNTc4ZjY2NjY4OGQ3NGZmNzE2ZDY2Yjg5MzJm
14
+ ZmE0YzU5MTc2MzlmOTI2MWIxYTcyNzcyZDk0ODNlMmUwMzNmYTFmZmMyOTc4
15
+ Y2FhZDgzZmMzYWQ2NzFkOWM4ZDg1YjQwNzVlNGJlODU0MTFkN2I=
@@ -3,27 +3,35 @@ require 'rspec-expectations'
3
3
 
4
4
  class TestCompleteWorld
5
5
 
6
- def initialize(test_complete_path, project_name)
6
+ def initialize(test_complete_path, project_name, options = {})
7
+ defaults = {
8
+ application: 'TestComplete'
9
+ }
10
+
11
+ options = defaults.merge(options)
12
+
7
13
  @project_name = project_name
8
14
 
9
- application_to_use = 'TestComplete.TestCompleteApplication'
15
+ application_to_use = "#{options[:application]}.#{options[:application]}Application"
10
16
 
11
17
  begin
12
- puts 'Connecting to TestExecute'
18
+ puts "Connecting to #{options[:application]}"
13
19
  @test_execute = WIN32OLE.connect(application_to_use)
14
20
  @test_execute.Integration
15
21
  rescue
16
- puts 'TestExecute does not appear to be running - starting instead'
22
+ puts "#{options[:application]} does not appear to be running - starting instead"
17
23
  Thread.new {@test_execute = WIN32OLE.new(application_to_use)}
18
24
  end
19
25
 
20
26
  # dumb windows thing
21
27
  test_complete_path = test_complete_path.gsub!('/', '\\')
22
28
 
23
- puts "Connected to TestComplete - making visible and opening project #{test_complete_path}"
29
+ puts "Connected to #{options[:application]} - making visible and opening project #{test_complete_path}"
24
30
 
25
- @test_execute.Visible = true # works only with testcomplete
26
- @test_execute.Integration.OpenProjectSuite(test_complete_path)
31
+
32
+ @test_execute.Visible = true unless options[:application] == "TestExecute"
33
+
34
+ @test_execute.Integration.OpenProjectSuite(test_complete_path)
27
35
 
28
36
  @integration = @test_execute.Integration
29
37
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_test_complete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Holland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-20 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A gem for integrating TestComplete into your Cucumber World
13
+ description: A gem for integrating TestComplete into your Cucumber Ruby World
14
14
  email: NathanH@granicus.com
15
15
  executables: []
16
16
  extensions: []