watir_framework 0.1.3 → 0.1.4

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: ac4b6322887b756a7294a37e3e83b7ac565df984
4
- data.tar.gz: 8b31586115e9446bf4dbb93c9e57c263f6a35c3f
3
+ metadata.gz: ac9b93c8c6b46aae8ea4288246fd867163ddc38b
4
+ data.tar.gz: c91baad86ae3a31b2e6f687b4a76a9b2a5e5c73a
5
5
  SHA512:
6
- metadata.gz: d720e83f8ea0c7dfa018fbbbac5e27ba01fad064b6eb69a69a734fa7ab8c7d9ceb53673830bf945f32d526687c435a9cdb921a98014d6aebf5804ec7ebf9c128
7
- data.tar.gz: 574b2168a3a85bba697ec0824dab301a2b78e211445e6f84eb20de99fdbd5966beba6156992090b6cf5849d883eeb6a393b5054a5c28a1227bab6e392fd1b627
6
+ metadata.gz: ee0f905725d458d04816d1c276e65234616432073af71dcba5b5b16d7095da6356d4ed6e368fa08eda042b60fd62595bd834118acf5e9765e38740208e54b82a
7
+ data.tar.gz: 4b66d377eba036ff0560935fba90791fd7cac8887e45232d40fdbf0971c2dbfc8074caa415161a62f25cc9b88277e03aaef9876bef0cc6d8c76d45464cbd1d25
@@ -1,4 +1,4 @@
1
- module <%= name.capitalize %>
1
+ module <%= name.split('_').map(&:capitalize).join %>
2
2
  module Model
3
3
  class Search < WatirModel
4
4
 
@@ -4,6 +4,6 @@ require '<%= name.downcase %>/pages/home'
4
4
  require '<%= name.downcase %>/pages/results'
5
5
  require '<%= name.downcase %>/models/search'
6
6
 
7
- module <%= name.capitalize %>
7
+ module <%= name.split('_').map(&:capitalize).join %>
8
8
  # Your code goes here...
9
9
  end
@@ -1,4 +1,4 @@
1
- module <%= name.capitalize %>
1
+ module <%= name.split('_').map(&:capitalize).join %>
2
2
  class Home < WatirDrops::PageObject
3
3
 
4
4
  element(:search_term) { browser.text_field(name: 'q')}
@@ -1,4 +1,4 @@
1
- module <%= name.capitalize %>
1
+ module <%= name.split('_').map(&:capitalize).join %>
2
2
  class Results < WatirDrops::PageObject
3
3
 
4
4
  elements(:results) { browser.divs(class: 'rc') }
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe <%= name.capitalize %> do
3
+ describe <%= name.split('_').map(&:capitalize).join %> do
4
4
  let(:browser) { WatirSession.browser }
5
5
 
6
6
  it "starts a driver" do
@@ -10,10 +10,10 @@ describe <%= name.capitalize %> do
10
10
  it "submits a search" do
11
11
  WatirDrops::PageObject.browser = Watir::Browser.new
12
12
 
13
- search_data = <%= name.capitalize %>::Model::Search.new
14
- search_page = <%= name.capitalize %>::Home.visit
13
+ search_data = <%= name.split('_').map(&:capitalize).join %>::Model::Search.new
14
+ search_page = <%= name.split('_').map(&:capitalize).join %>::Home.visit
15
15
  search_page.search(search_data)
16
16
 
17
- expect(<%= name.capitalize %>::Results.new.first_result).to include search_data.first_result
17
+ expect(<%= name.split('_').map(&:capitalize).join %>::Results.new.first_result).to include search_data.first_result
18
18
  end
19
19
  end
@@ -4,7 +4,7 @@ require "watir_session"
4
4
 
5
5
  WatirSession.start
6
6
 
7
- include <%= name.capitalize %>
7
+ include <%= name.split('_').map(&:capitalize).join %>
8
8
 
9
9
  RSpec.configure do |config|
10
10
  config.before(:each) do
@@ -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.3"
7
+ spec.version = "0.1.4"
8
8
  spec.authors = ["Titus Fortner"]
9
9
  spec.email = ["titusfortner@gmail.com"]
10
10
 
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.3
4
+ version: 0.1.4
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-21 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler