watir-rspec 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/watir/rspec.rb +1 -1
- data/lib/watir/rspec/version.rb +1 -1
- data/spec/watir/rspec_spec.rb +21 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53a815c2800e2c39ece1da6f15c968e2721106d4
|
4
|
+
data.tar.gz: 02d82629c228ec9fe0db971c8abe1eb64fbfa3fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934b490d98fe0b59536cb5b3193e8de02524ab1eaaf6ecf0b78343f4f4af708e852587282100a628a5c430f678a80e664c7232bd7035389b51fcd5af3846868e
|
7
|
+
data.tar.gz: cc000c8faa40fe8f79b47e7687c1db280840ee20777dc45017d88ea3f75c8e4ad15cb7654a5fe908a304e888171b9053f4c6c95f9ae1ea513dba4395b48861b8
|
data/CHANGES.md
CHANGED
data/lib/watir/rspec.rb
CHANGED
@@ -10,7 +10,7 @@ module Watir
|
|
10
10
|
# @return [String] Absolute path for the unique file name.
|
11
11
|
# @raise [RuntimeError] when {Watir::RSpec::HtmlFormatter} is not in use.
|
12
12
|
def file_path(file_name, description=nil)
|
13
|
-
formatter.file_path(file_name, description
|
13
|
+
formatter.file_path(file_name, description)
|
14
14
|
end
|
15
15
|
|
16
16
|
# @private
|
data/lib/watir/rspec/version.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Watir::RSpec do
|
4
|
+
context "#file_path" do
|
5
|
+
it "without description" do
|
6
|
+
formatter = double("formatter", file_path: "file-path")
|
7
|
+
Watir::RSpec.stub(formatter: formatter)
|
8
|
+
formatter.should_receive(:file_path).with("name", nil)
|
9
|
+
|
10
|
+
Watir::RSpec.file_path("name").should == "file-path"
|
11
|
+
end
|
12
|
+
|
13
|
+
it "with description" do
|
14
|
+
formatter = double("formatter", file_path: "file-path")
|
15
|
+
Watir::RSpec.stub(formatter: formatter)
|
16
|
+
formatter.should_receive(:file_path).with("name", "description")
|
17
|
+
|
18
|
+
Watir::RSpec.file_path("name", "description").should == "file-path"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarmo Pertman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- spec/watir/rspec/helper_spec.rb
|
111
111
|
- spec/watir/rspec/matchers/base_matcher_spec.rb
|
112
112
|
- spec/watir/rspec/matchers_spec.rb
|
113
|
+
- spec/watir/rspec_spec.rb
|
113
114
|
- watir-rspec.gemspec
|
114
115
|
homepage: http://github.com/watir/watir-rspec
|
115
116
|
licenses: []
|
@@ -140,4 +141,5 @@ test_files:
|
|
140
141
|
- spec/watir/rspec/helper_spec.rb
|
141
142
|
- spec/watir/rspec/matchers/base_matcher_spec.rb
|
142
143
|
- spec/watir/rspec/matchers_spec.rb
|
144
|
+
- spec/watir/rspec_spec.rb
|
143
145
|
has_rdoc:
|