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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fa145f5fb64e807c073b87c08866ef254f499ca
4
- data.tar.gz: 1a89360580244df9cbf3e82bffe99d32febdaf70
3
+ metadata.gz: 53a815c2800e2c39ece1da6f15c968e2721106d4
4
+ data.tar.gz: 02d82629c228ec9fe0db971c8abe1eb64fbfa3fe
5
5
  SHA512:
6
- metadata.gz: cd8f339fb49863f8a52586c35706f89739189cd65d3f93d2ebc512071e9321f7762ed158cc1031aa83a3a5eec6da3648e21692e1504afce10660aaa177cd09f2
7
- data.tar.gz: 780e1957f51745e8374db2e353bc2a365f15eb1bd40507fd792031e86f55562f86764991ccd4af251acf2bee6272e7a497cd298621180324277b432a18ccb24d
6
+ metadata.gz: 934b490d98fe0b59536cb5b3193e8de02524ab1eaaf6ecf0b78343f4f4af708e852587282100a628a5c430f678a80e664c7232bd7035389b51fcd5af3846868e
7
+ data.tar.gz: cc000c8faa40fe8f79b47e7687c1db280840ee20777dc45017d88ea3f75c8e4ad15cb7654a5fe908a304e888171b9053f4c6c95f9ae1ea513dba4395b48861b8
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.3 - 2015/03/11
2
+
3
+ * Fix `Watir::RSpec.file_path` to not discard description (PR #11).
4
+
1
5
  ### 1.1.2 - 2013/12/06
2
6
 
3
7
  * Load Watir as a dependency automatically.
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=nil)
13
+ formatter.file_path(file_name, description)
14
14
  end
15
15
 
16
16
  # @private
@@ -1,5 +1,5 @@
1
1
  module Watir
2
2
  class RSpec
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
  end
@@ -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.2
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: 2013-12-06 00:00:00.000000000 Z
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: