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: f012ab98d6311283cd8c065ff68a5eebcb5484f3
4
- data.tar.gz: f180239020dc6aa269450ab48674c9941356266f
3
+ metadata.gz: 339df9dc4464c9329439505b456530dd7a282201
4
+ data.tar.gz: 75dcf6e5e596c46116bebfe754094494a9c86f5b
5
5
  SHA512:
6
- metadata.gz: 4d4efc76a60260c1111666535b161467c48ff540257f63f19387935526b2b1c1b5225a2a547042916f63e2eec87829ac43760e6c9c01e74a81fe3ec183f4d6e0
7
- data.tar.gz: 81c487778e1b7957fb90ca8d347b86cb35b4d5aea61a109024028184bdb16e03e5630e464edbcd52731b242457e14ab269ee8dde9acbc9926ec6be38e7bb317f
6
+ metadata.gz: 65aec3a49869aff4c35817af5eb31ee0d9607fbdc74bd16bb749170102cafa9f37c0415b55c0e0c45d57624d5dda72ec360713701281173e027040439a492a14
7
+ data.tar.gz: 8c80d698233ab4efd5eed414513935b7a62b47449a43c5948ccb9198880c834850d1154893cfe9b6afe297e1ceed75938241b3961a8c3636ea3b7503c7d47ef0
data/lib/magicspec.rb CHANGED
@@ -4,5 +4,4 @@ require 'page-object'
4
4
  require 'magicspec/ext/string'
5
5
  require 'magicspec/magicspec_config'
6
6
  require 'magicspec/magicspec_initializer'
7
- require 'magicspec/page_override'
8
- require 'magicspec/watir_browser'
7
+ require 'magicspec/page_override'
@@ -2,8 +2,8 @@ require 'erb'
2
2
  require 'rspec/core/formatters/html_formatter'
3
3
  require './config/override'
4
4
 
5
- module Lazyman
6
- class LazymanFormatter < ::RSpec::Core::Formatters::HtmlFormatter
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 #LazymanFormatter
47
- end #Lazyman
45
+ end #MagicspecFormatter
46
+ end #Magicspec
@@ -1,3 +1,4 @@
1
+ # Adding a help called turn_to to assist with page transitions.
1
2
  module PageObject
2
3
  def turn_to kls
3
4
  kls.new(@browser)
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.2"
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 = ["easonhan,dmfranko"]
12
- s.date = "2013-12-18"
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - easonhan,dmfranko
7
+ - dmfranko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
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
@@ -1,7 +0,0 @@
1
- module Watir
2
- class Browser
3
- def factory
4
- puts "This be the factory yo."
5
- end
6
- end
7
- end