yolo 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,6 +74,14 @@ module Yolo
74
74
  puts green("IPA saved to: #{ipa}")
75
75
  end
76
76
 
77
+ #
78
+ # Outputs a green string stating that the calabash tests ran
79
+ # @param directory [String] The path to the tests
80
+ #
81
+ def tests_generated(directory)
82
+ puts green("Test reports saved to: #{directory}")
83
+ end
84
+
77
85
  #
78
86
  # Outputs an underlined bold string stating that the release notes are being generated
79
87
  #
@@ -22,7 +22,7 @@ module Yolo
22
22
  puts line
23
23
  end
24
24
  rescue EOFError
25
- puts "Error while executing"
25
+ Yolo::Formatters::ProgressFormatter.new.tests_generated(output_dir)
26
26
  end
27
27
  end
28
28
  $?.exitstatus if $?
@@ -36,9 +36,13 @@ describe Yolo::Tools::Ios::Calabash do
36
36
  Yolo::Tools::Ios::Calabash.run
37
37
  end
38
38
 
39
- it "should catch EOFError exceptions" do
39
+ it "should catch EOFError exceptions and output completion" do
40
40
  @io.stub(:readline).and_raise(EOFError)
41
- Yolo::Tools::Ios::Calabash.should_receive(:puts)
41
+ @formatter = mock(Yolo::Formatters::ProgressFormatter)
42
+ Yolo::Formatters::ProgressFormatter.stub(:new){@formatter}
43
+ @formatter.stub(:tests_generated)
44
+
45
+ @formatter.should_receive(:tests_generated)
42
46
  Yolo::Tools::Ios::Calabash.run
43
47
  end
44
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: