watir_framework 0.1.2 → 0.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: f75e417376c42e17aceb46741ecbf0a269990e41
4
- data.tar.gz: 177b5929e5944b1b27807b239f628a015a386272
3
+ metadata.gz: ac4b6322887b756a7294a37e3e83b7ac565df984
4
+ data.tar.gz: 8b31586115e9446bf4dbb93c9e57c263f6a35c3f
5
5
  SHA512:
6
- metadata.gz: 6a901075c375554f5da0d0eabd06e78ad8706a35bfd616935ab2874b22d10681b34934cc906cb6806bb9347f7278738562bdbd02e762751a4ea7a178b3d3fc48
7
- data.tar.gz: 3d9aa33920a9887d1c5a536857a1439ba4a8c9c28850c7d73a1f4e7cedc788901963461b0c26530c372d670ff38b018b3b538d37e7a9532db79a19d5494595de
6
+ metadata.gz: d720e83f8ea0c7dfa018fbbbac5e27ba01fad064b6eb69a69a734fa7ab8c7d9ceb53673830bf945f32d526687c435a9cdb921a98014d6aebf5804ec7ebf9c128
7
+ data.tar.gz: 574b2168a3a85bba697ec0824dab301a2b78e211445e6f84eb20de99fdbd5966beba6156992090b6cf5849d883eeb6a393b5054a5c28a1227bab6e392fd1b627
data/README.md CHANGED
@@ -1,23 +1,16 @@
1
1
  # WatirFramework
2
2
 
3
- Watir Framework provides all the basic configurations and access to all of the
4
- gems necessary to easily create and maintain a test suite.
3
+ This gem allows you to create a new directory for your project with sample templates
4
+ to use to write your Watir tests. It includes a number of useful gems along with
5
+ the recommended default configurations to easily create and maintain your test suite.
5
6
 
6
7
  ## Installation
7
8
 
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem 'watir_framework'
12
- ```
13
-
14
- And then execute:
15
-
16
- $ bundle
9
+ $ gem install watir_framework
17
10
 
18
- Or install it yourself as:
11
+ And then execute with the name of your project:
19
12
 
20
- $ gem install watir_framework
13
+ $ watir_framework foobar
21
14
 
22
15
  ## Contributing
23
16
 
data/bin/watir ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ load File.expand_path("../watir_framework", __FILE__)
@@ -1,7 +1,6 @@
1
1
  require 'thor/group'
2
2
  require 'git'
3
3
  require 'active_support/inflector'
4
- require "highline/import"
5
4
 
6
5
  class NewProject < Thor::Group
7
6
  include Thor::Actions
@@ -26,5 +26,6 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_development_dependency "watir", "~> 6.0"
28
28
  spec.add_development_dependency "watir_drops", "~> 0.5.0"
29
- spec.add_development_dependency "watir_model"
29
+ spec.add_development_dependency 'watir_model', "~> 0.2"
30
+ spec.add_development_dependency "watir_session", "~> 0.2"
30
31
  end
@@ -1,18 +1,19 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe <%= name.capitalize %> do
4
+ let(:browser) { WatirSession.browser }
5
+
4
6
  it "starts a driver" do
5
- browser = Watir::Browser.new
6
7
  expect(browser.window).to exist
7
- browser.quit
8
8
  end
9
9
 
10
10
  it "submits a search" do
11
- search_data = <%= name.capitalize %>::Model::Search.new
12
11
  WatirDrops::PageObject.browser = Watir::Browser.new
12
+
13
+ search_data = <%= name.capitalize %>::Model::Search.new
13
14
  search_page = <%= name.capitalize %>::Home.visit
14
15
  search_page.search(search_data)
16
+
15
17
  expect(<%= name.capitalize %>::Results.new.first_result).to include search_data.first_result
16
- WatirDrops::PageObject.browser.quit
17
18
  end
18
19
  end
@@ -1,2 +1,17 @@
1
1
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
2
  require "<%= name.downcase %>"
3
+ require "watir_session"
4
+
5
+ WatirSession.start
6
+
7
+ include <%= name.capitalize %>
8
+
9
+ RSpec.configure do |config|
10
+ config.before(:each) do
11
+ WatirSession.before_each
12
+ end
13
+
14
+ config.after(:each) do
15
+ WatirSession.after_each
16
+ end
17
+ end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "watir_framework"
7
- spec.version = "0.1.2"
7
+ spec.version = "0.1.3"
8
8
  spec.authors = ["Titus Fortner"]
9
9
  spec.email = ["titusfortner@gmail.com"]
10
10
 
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
35
35
 
36
36
  spec.add_dependency('thor', '~> 0.19.1')
37
37
  spec.add_dependency "watir_drops", "~> 0.5.0"
38
- spec.add_dependency "watir_model"
38
+ spec.add_dependency 'watir_model', "~> 0.2"
39
+ spec.add_dependency "watir_session", "~> 0.2"
39
40
  spec.add_dependency "git", "~> 1.3.0"
40
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,16 +84,30 @@ dependencies:
84
84
  name: watir_model
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: watir_session
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.2'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: '0.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: git
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -125,6 +139,7 @@ files:
125
139
  - LICENSE.txt
126
140
  - README.md
127
141
  - Rakefile
142
+ - bin/watir
128
143
  - bin/watir_framework
129
144
  - generators/new_project/generator.rb
130
145
  - generators/new_project/templates/gemfile.rb.erb