watir-rspec 1.0.1 → 1.1.0

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: 25aef044138506ff2f88ca67c48f6b022e8ff4a8
4
- data.tar.gz: 3c8d3b66e260a703a46807c39a7653fc4beb4d6a
3
+ metadata.gz: b92ef9c21f1b04b64a0ffbd2f0d65e675f64b5fc
4
+ data.tar.gz: 77eaffca4183a8c8715cdb747940e0cf50bed0c4
5
5
  SHA512:
6
- metadata.gz: 76c75052d52353b225ed82070a207f8f51f7c4e25f3d344ce1453edd9e06bc9195cadb69c3fc43fc877a32742d23ac199fb6da49a3d604231650d4c0854e98fe
7
- data.tar.gz: 2af29b991b245983bd40c1225245526f8ee42d7d35a7be39062b81b0338b6c01b9120175b11ce1879d5f7b7922dfb108c1e61c207d2a17382b44bdf78955bc0c
6
+ metadata.gz: 74222f68036ac04aa133a2e82a7544ad685bff5ecb073cca39eea4c39fb1b806f10bfa6266c9d119d5313d264c9387e285715d8660ccd92df6917cd8b1518901
7
+ data.tar.gz: 943a90d167cbe9d87eb1cef0d270d110746c760939b4d7d834e50b3194abcc6e6fc6ec1b61f43ed0788801fbf523dfa2f77864f958f7d8e202014a3b59bc7617
data/CHANGES.md CHANGED
@@ -1,9 +1,13 @@
1
+ ### 1.1.0 - 2013/10/05
2
+
3
+ * Add --force option for watir-rspec command line interface to force the installation even if it seems to be already installed for the project.
4
+
1
5
  ### 1.0.1 - 2013/09/21
2
6
 
3
- * documentation tweaks
7
+ * Documentation tweaks.
4
8
 
5
9
  ### 1.0.0 - 2013/09/21
6
10
 
7
- * add installation binary watir-rspec for easier installation of the gem
8
- * many internal changes
9
- * README revamp
11
+ * Add installation binary watir-rspec for easier installation of the gem.
12
+ * Many internal changes.
13
+ * README revamp.
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'coveralls', require: false
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "coveralls", require: false
data/README.md CHANGED
@@ -40,7 +40,7 @@ describe "Google" do
40
40
  before { goto "http://google.com" }
41
41
 
42
42
  it "has search box" do
43
- text_field(:name => "q").should be_present
43
+ text_field(:name => "q").should be_present
44
44
  end
45
45
 
46
46
  it "allows to search" do
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
- require 'rspec/core/rake_task'
3
+ require "rspec/core/rake_task"
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
6
  task :default => :spec
@@ -15,6 +15,10 @@ Usage: watir-rspec [options] install"
15
15
  opts.on("-r", "--[no-]rails", "Force to install watir-rspec for Rails application if the detection fails") do |v|
16
16
  @options[:rails] = v
17
17
  end
18
+
19
+ opts.on("-f", "--force", "Force to install watir-rspec even if it seems to be installed already") do |v|
20
+ @options[:force] = v
21
+ end
18
22
  end
19
23
 
20
24
  parser.parse!
@@ -24,7 +28,7 @@ Usage: watir-rspec [options] install"
24
28
  exit
25
29
  end
26
30
 
27
- unless already_installed?
31
+ if @options[:force] || !already_installed?
28
32
  install
29
33
  else
30
34
  puts "watir-rspec is already installed into #{spec_helper}... skipping."
@@ -1,5 +1,5 @@
1
1
  module Watir
2
2
  class RSpec
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -62,6 +62,7 @@ describe Watir::RSpec::Matchers::BaseMatcher do
62
62
  end
63
63
 
64
64
  object.should be_foo.within(1)
65
+ raised.should be_true
65
66
  end
66
67
 
67
68
  it "#does_not_match?" do
@@ -96,6 +97,7 @@ describe Watir::RSpec::Matchers::BaseMatcher do
96
97
  end
97
98
 
98
99
  object.should_not be_foo.within(1)
100
+ raised.should be_true
99
101
  end
100
102
  end
101
103
 
@@ -133,6 +135,7 @@ describe Watir::RSpec::Matchers::BaseMatcher do
133
135
  end
134
136
 
135
137
  object.should be_foo.during(0.1)
138
+ raised.should be_true
136
139
  end
137
140
 
138
141
  it "#does_not_match?" do
@@ -166,6 +169,7 @@ describe Watir::RSpec::Matchers::BaseMatcher do
166
169
  end
167
170
 
168
171
  object.should_not be_foo.during(0.1)
172
+ raised.should be_true
169
173
  end
170
174
  end
171
175
 
data/watir-rspec.gemspec CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.version = Watir::RSpec::VERSION
17
17
 
18
18
  gem.add_dependency "rspec", "~>2.0"
19
+ gem.add_dependency "watir", "~>5.0"
19
20
 
20
21
  gem.add_development_dependency "yard"
21
22
  gem.add_development_dependency "rake"
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.0.1
4
+ version: 1.1.0
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-09-21 00:00:00.000000000 Z
11
+ date: 2013-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: watir
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: yard
29
43
  requirement: !ruby/object:Gem::Requirement