tddium_reporting 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ module TddiumReporting
2
+ class SpecRunner
3
+ def self.runner
4
+ if defined?(RSpec)
5
+ RSpec
6
+ elsif defined?(Spec::Runner)
7
+ Spec::Runner
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,4 +1,4 @@
1
1
  # Copyright (c) 2011 Solano Labs All Rights Reserved
2
2
  module TddiumReporting
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
@@ -1,10 +1,11 @@
1
1
  # Copyright (c) 2011 Solano Labs All Rights Reserved
2
2
  require File.expand_path(File.dirname(__FILE__) + "/tddium_reporting/system_capture")
3
+ require File.expand_path(File.dirname(__FILE__) + "/tddium_reporting/spec_runner")
3
4
 
4
- runner = defined?(RSpec) ? RSpec : Spec::Runner
5
5
 
6
- if ENV["TDDIUM"]
7
- runner.configure do |config|
6
+ spec_runner = TddiumReporting::SpecRunner.runner
7
+ if spec_runner && ENV["TDDIUM"]
8
+ spec_runner.configure do |config|
8
9
  config.after(:each) do
9
10
  if defined?(selenium_driver)
10
11
  begin
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tddium_reporting
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Solano Labs
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-01 00:00:00 -07:00
13
+ date: 2011-09-11 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,7 @@ extra_rdoc_files: []
46
46
 
47
47
  files:
48
48
  - lib/tddium_reporting.rb
49
+ - lib/tddium_reporting/spec_runner.rb
49
50
  - lib/tddium_reporting/system_capture.rb
50
51
  - lib/tddium_reporting/version.rb
51
52
  has_rdoc: true