magicspec 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 339df9dc4464c9329439505b456530dd7a282201
|
4
|
+
data.tar.gz: 75dcf6e5e596c46116bebfe754094494a9c86f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65aec3a49869aff4c35817af5eb31ee0d9607fbdc74bd16bb749170102cafa9f37c0415b55c0e0c45d57624d5dda72ec360713701281173e027040439a492a14
|
7
|
+
data.tar.gz: 8c80d698233ab4efd5eed414513935b7a62b47449a43c5948ccb9198880c834850d1154893cfe9b6afe297e1ceed75938241b3961a8c3636ea3b7503c7d47ef0
|
data/lib/magicspec.rb
CHANGED
@@ -2,8 +2,8 @@ require 'erb'
|
|
2
2
|
require 'rspec/core/formatters/html_formatter'
|
3
3
|
require './config/override'
|
4
4
|
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Magicspec
|
6
|
+
class MagicspecFormatter < ::RSpec::Core::Formatters::HtmlFormatter
|
7
7
|
def initialize(output)
|
8
8
|
output = File.new(File.expand_path(File.join('.', 'app', 'reports', "#{Time.now.strftime("%Y%m%d_%H%M%S")}.html")), 'w')
|
9
9
|
super(output)
|
@@ -12,20 +12,19 @@ module Lazyman
|
|
12
12
|
end #define_method
|
13
13
|
end
|
14
14
|
|
15
|
+
# Check if this is browser and we'll add some content.
|
15
16
|
def example_failed(example)
|
16
17
|
super(example)
|
17
18
|
if $navi
|
18
19
|
failed_url = $navi.url rescue $navi.current_url
|
19
20
|
@printer.puts "<a target=\"_blank\" href=\"#{failed_url}\">failed url is [#{failed_url}]</a>"
|
20
21
|
@printer.puts '<br />'
|
21
|
-
@printer.puts '<p>Extra problem text</p>'
|
22
22
|
@printer.flush
|
23
23
|
end #if
|
24
24
|
end
|
25
25
|
|
26
26
|
def example_passed(example)
|
27
27
|
super(example)
|
28
|
-
@printer.puts "<p>I'm here.</p>"
|
29
28
|
@printer.flush
|
30
29
|
end
|
31
30
|
|
@@ -43,5 +42,5 @@ module Lazyman
|
|
43
42
|
super + content.join($/)
|
44
43
|
end
|
45
44
|
end
|
46
|
-
end #
|
47
|
-
end #
|
45
|
+
end #MagicspecFormatter
|
46
|
+
end #Magicspec
|
data/magicspec.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "magicspec"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["
|
12
|
-
s.date = "
|
11
|
+
s.authors = ["dmfranko"]
|
12
|
+
s.date = "2014-02-18"
|
13
13
|
s.description = "A test framework using watir-webdriver rspec and page-object"
|
14
14
|
s.email = "dan.franko@yale.edu"
|
15
15
|
s.executables = ["magicspec"]
|
@@ -58,7 +58,6 @@ Gem::Specification.new do |s|
|
|
58
58
|
"lib/magicspec/magicspec_config.rb",
|
59
59
|
"lib/magicspec/magicspec_initializer.rb",
|
60
60
|
"lib/magicspec/page_override.rb",
|
61
|
-
"lib/magicspec/watir_browser.rb",
|
62
61
|
"lib/magicspec/templates/browser_spec_template.rb.tt",
|
63
62
|
"lib/magicspec/templates/mobile_template.rb.tt",
|
64
63
|
"lib/magicspec/templates/plain_template.rb.tt",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magicspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- dmfranko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: page-object
|
@@ -157,7 +157,6 @@ files:
|
|
157
157
|
- lib/magicspec/magicspec_config.rb
|
158
158
|
- lib/magicspec/magicspec_initializer.rb
|
159
159
|
- lib/magicspec/page_override.rb
|
160
|
-
- lib/magicspec/watir_browser.rb
|
161
160
|
- lib/magicspec/templates/browser_spec_template.rb.tt
|
162
161
|
- lib/magicspec/templates/mobile_template.rb.tt
|
163
162
|
- lib/magicspec/templates/plain_template.rb.tt
|