cuesmash 0.1.7.1 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,31 +1,32 @@
1
1
  require 'spec_helper'
2
+ require 'cuesmash/ioscompiler'
2
3
 
3
- describe Cuesmash::Compiler do
4
+ describe Cuesmash::IosCompiler do
4
5
 
5
6
  before(:each) do
6
- Cuesmash::Compiler.any_instance.stub(:puts)
7
+ Cuesmash::IosCompiler.any_instance.stub(:puts)
7
8
  end
8
9
 
9
10
  it "should have a scheme instance" do
10
- compiler = Cuesmash::Compiler.new("scheme", "/tmp", "Debug")
11
+ compiler = Cuesmash::IosCompiler.new("scheme", "/tmp", "Debug")
11
12
  expect(compiler.scheme).to match("scheme")
12
13
  end
13
14
 
14
15
  it "should have a tmp_dir instance" do
15
- compiler = Cuesmash::Compiler.new("scheme", "/tmp", "Debug")
16
+ compiler = Cuesmash::IosCompiler.new("scheme", "/tmp", "Debug")
16
17
  expect(compiler.tmp_dir).to match("/tmp")
17
18
  end
18
19
 
19
20
  it "should have a build config" do
20
- compiler = Cuesmash::Compiler.new("scheme", "/tmp", "Debug")
21
+ compiler = Cuesmash::IosCompiler.new("scheme", "/tmp", "Debug")
21
22
  expect(compiler.build_configuration).to match("Debug")
22
23
  end
23
24
 
24
25
  describe "when generating the command" do
25
26
 
26
27
  before(:each) do
27
- Cuesmash::Compiler.any_instance.stub(:workspace)
28
- @compiler = Cuesmash::Compiler.new("test-scheme", "/tmp", "Debug")
28
+ Cuesmash::IosCompiler.any_instance.stub(:workspace)
29
+ @compiler = Cuesmash::IosCompiler.new("test-scheme", "/tmp", "Debug")
29
30
  end
30
31
 
31
32
  it "should contain the scheme" do
@@ -44,7 +45,7 @@ describe Cuesmash::Compiler do
44
45
  describe "when getting the workspacae" do
45
46
 
46
47
  before(:each) do
47
- @compiler = Cuesmash::Compiler.new(nil, "/tmp", "Debug")
48
+ @compiler = Cuesmash::IosCompiler.new(nil, "/tmp", "Debug")
48
49
  Dir.stub(:[]){["workspace-file"]}
49
50
  end
50
51
 
@@ -62,7 +63,7 @@ describe Cuesmash::Compiler do
62
63
  wait.stub(:join)
63
64
  Open3.stub(:popen3).and_yield(nil, nil, nil, wait)
64
65
 
65
- @compiler = Cuesmash::Compiler.new(nil, "/tmp", "Debug")
66
+ @compiler = Cuesmash::IosCompiler.new(nil, "/tmp", "Debug")
66
67
  end
67
68
 
68
69
  it "should complete if all is well" do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  require "cuesmash"
2
+ require 'simplecov'
3
+ SimpleCov.start
2
4
 
3
5
  RSpec.configure do |config|
4
6
  # ...
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuesmash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.1
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fish
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-04 00:00:00.000000000 Z
12
+ date: 2015-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -95,6 +95,20 @@ dependencies:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: 3.5.1
98
+ - !ruby/object:Gem::Dependency
99
+ name: simplecov
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 0.9.0
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 0.9.0
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: CFPropertyList
100
114
  requirement: !ruby/object:Gem::Requirement
@@ -173,20 +187,32 @@ files:
173
187
  - bin/cuesmash
174
188
  - cuesmash.gemspec
175
189
  - lib/cuesmash.rb
190
+ - lib/cuesmash/android_app.rb
191
+ - lib/cuesmash/android_appium_text.rb
192
+ - lib/cuesmash/android_command.rb
193
+ - lib/cuesmash/android_compiler.rb
194
+ - lib/cuesmash/androidapp.rb
195
+ - lib/cuesmash/app.rb
176
196
  - lib/cuesmash/appium_server.rb
177
197
  - lib/cuesmash/appium_text.rb
178
198
  - lib/cuesmash/command.rb
179
199
  - lib/cuesmash/compiler.rb
180
200
  - lib/cuesmash/cucumber.rb
201
+ - lib/cuesmash/ios_app.rb
202
+ - lib/cuesmash/ios_compiler.rb
181
203
  - lib/cuesmash/iosapp.rb
204
+ - lib/cuesmash/ioscompiler.rb
182
205
  - lib/cuesmash/plist.rb
183
206
  - lib/cuesmash/setup.rb
184
207
  - lib/cuesmash/start.rb
208
+ - spec/android_compiler_spec.rb
185
209
  - spec/appium_text_spec.rb
186
210
  - spec/command_spec.rb
187
- - spec/compiler_spec.rb
188
211
  - spec/cucumber_spec.rb
212
+ - spec/ios_app_spec.rb
213
+ - spec/ios_compiler_spec.rb
189
214
  - spec/iosapp_spec.rb
215
+ - spec/ioscompiler_spec.rb
190
216
  - spec/plist_spec.rb
191
217
  - spec/spec_helper.rb
192
218
  homepage: https://github.com/ustwo/cuesmash
@@ -214,10 +240,13 @@ signing_key:
214
240
  specification_version: 4
215
241
  summary: Compile an app, point the app at sinatra, run cucumber with appium
216
242
  test_files:
243
+ - spec/android_compiler_spec.rb
217
244
  - spec/appium_text_spec.rb
218
245
  - spec/command_spec.rb
219
- - spec/compiler_spec.rb
220
246
  - spec/cucumber_spec.rb
247
+ - spec/ios_app_spec.rb
248
+ - spec/ios_compiler_spec.rb
221
249
  - spec/iosapp_spec.rb
250
+ - spec/ioscompiler_spec.rb
222
251
  - spec/plist_spec.rb
223
252
  - spec/spec_helper.rb