projecto 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 02650f681a16e3bb7ca0a5048ea86220746d623172fc0638e0015b599770eb44
4
+ data.tar.gz: f31705f666357b94120e29a2149b05717eff2fb0e2f26b1074c3bf96cddfbfe1
5
+ SHA512:
6
+ metadata.gz: 4dcebadca4af355a7718f6bbd610e31bd9ed550d9da8847aa11d1a60f439908395811074be3595cdbff019392e578e0ed78454c3b457776cfade5f32b8d7deba
7
+ data.tar.gz: 2a4a57d671897ea3f9d644fa6e3439fc0c934427bcfc2f0e912e199bc1d3aa8b665f719f5f088ca6bf0f4f844c40f918d5ed3593318691ec2822a1433d216bcd
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.5
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at antodoms@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in projecto.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,169 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ projecto (0.1.1)
5
+ capybara (~> 2.13)
6
+ rails (~> 5.1.6)
7
+ rspec-rails (~> 4.0.0)
8
+ sanitize
9
+ selenium-webdriver
10
+ webdrivers
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ actioncable (5.1.7)
16
+ actionpack (= 5.1.7)
17
+ nio4r (~> 2.0)
18
+ websocket-driver (~> 0.6.1)
19
+ actionmailer (5.1.7)
20
+ actionpack (= 5.1.7)
21
+ actionview (= 5.1.7)
22
+ activejob (= 5.1.7)
23
+ mail (~> 2.5, >= 2.5.4)
24
+ rails-dom-testing (~> 2.0)
25
+ actionpack (5.1.7)
26
+ actionview (= 5.1.7)
27
+ activesupport (= 5.1.7)
28
+ rack (~> 2.0)
29
+ rack-test (>= 0.6.3)
30
+ rails-dom-testing (~> 2.0)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
32
+ actionview (5.1.7)
33
+ activesupport (= 5.1.7)
34
+ builder (~> 3.1)
35
+ erubi (~> 1.4)
36
+ rails-dom-testing (~> 2.0)
37
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
38
+ activejob (5.1.7)
39
+ activesupport (= 5.1.7)
40
+ globalid (>= 0.3.6)
41
+ activemodel (5.1.7)
42
+ activesupport (= 5.1.7)
43
+ activerecord (5.1.7)
44
+ activemodel (= 5.1.7)
45
+ activesupport (= 5.1.7)
46
+ arel (~> 8.0)
47
+ activesupport (5.1.7)
48
+ concurrent-ruby (~> 1.0, >= 1.0.2)
49
+ i18n (>= 0.7, < 2)
50
+ minitest (~> 5.1)
51
+ tzinfo (~> 1.1)
52
+ addressable (2.7.0)
53
+ public_suffix (>= 2.0.2, < 5.0)
54
+ arel (8.0.0)
55
+ builder (3.2.4)
56
+ capybara (2.18.0)
57
+ addressable
58
+ mini_mime (>= 0.1.3)
59
+ nokogiri (>= 1.3.3)
60
+ rack (>= 1.0.0)
61
+ rack-test (>= 0.5.4)
62
+ xpath (>= 2.0, < 4.0)
63
+ childprocess (3.0.0)
64
+ concurrent-ruby (1.1.6)
65
+ crass (1.0.6)
66
+ diff-lcs (1.3)
67
+ erubi (1.9.0)
68
+ globalid (0.4.2)
69
+ activesupport (>= 4.2.0)
70
+ i18n (1.8.2)
71
+ concurrent-ruby (~> 1.0)
72
+ loofah (2.5.0)
73
+ crass (~> 1.0.2)
74
+ nokogiri (>= 1.5.9)
75
+ mail (2.7.1)
76
+ mini_mime (>= 0.1.1)
77
+ method_source (1.0.0)
78
+ mini_mime (1.0.2)
79
+ mini_portile2 (2.4.0)
80
+ minitest (5.14.0)
81
+ nio4r (2.5.2)
82
+ nokogiri (1.10.9)
83
+ mini_portile2 (~> 2.4.0)
84
+ nokogumbo (2.0.2)
85
+ nokogiri (~> 1.8, >= 1.8.4)
86
+ public_suffix (4.0.4)
87
+ rack (2.2.2)
88
+ rack-test (1.1.0)
89
+ rack (>= 1.0, < 3)
90
+ rails (5.1.7)
91
+ actioncable (= 5.1.7)
92
+ actionmailer (= 5.1.7)
93
+ actionpack (= 5.1.7)
94
+ actionview (= 5.1.7)
95
+ activejob (= 5.1.7)
96
+ activemodel (= 5.1.7)
97
+ activerecord (= 5.1.7)
98
+ activesupport (= 5.1.7)
99
+ bundler (>= 1.3.0)
100
+ railties (= 5.1.7)
101
+ sprockets-rails (>= 2.0.0)
102
+ rails-dom-testing (2.0.3)
103
+ activesupport (>= 4.2.0)
104
+ nokogiri (>= 1.6)
105
+ rails-html-sanitizer (1.3.0)
106
+ loofah (~> 2.3)
107
+ railties (5.1.7)
108
+ actionpack (= 5.1.7)
109
+ activesupport (= 5.1.7)
110
+ method_source
111
+ rake (>= 0.8.7)
112
+ thor (>= 0.18.1, < 2.0)
113
+ rake (13.0.1)
114
+ rspec-core (3.9.1)
115
+ rspec-support (~> 3.9.1)
116
+ rspec-expectations (3.9.1)
117
+ diff-lcs (>= 1.2.0, < 2.0)
118
+ rspec-support (~> 3.9.0)
119
+ rspec-mocks (3.9.1)
120
+ diff-lcs (>= 1.2.0, < 2.0)
121
+ rspec-support (~> 3.9.0)
122
+ rspec-rails (4.0.0)
123
+ actionpack (>= 4.2)
124
+ activesupport (>= 4.2)
125
+ railties (>= 4.2)
126
+ rspec-core (~> 3.9)
127
+ rspec-expectations (~> 3.9)
128
+ rspec-mocks (~> 3.9)
129
+ rspec-support (~> 3.9)
130
+ rspec-support (3.9.2)
131
+ rubyzip (2.3.0)
132
+ sanitize (5.1.0)
133
+ crass (~> 1.0.2)
134
+ nokogiri (>= 1.8.0)
135
+ nokogumbo (~> 2.0)
136
+ selenium-webdriver (3.142.7)
137
+ childprocess (>= 0.5, < 4.0)
138
+ rubyzip (>= 1.2.2)
139
+ sprockets (4.0.0)
140
+ concurrent-ruby (~> 1.0)
141
+ rack (> 1, < 3)
142
+ sprockets-rails (3.2.1)
143
+ actionpack (>= 4.0)
144
+ activesupport (>= 4.0)
145
+ sprockets (>= 3.0.0)
146
+ thor (1.0.1)
147
+ thread_safe (0.3.6)
148
+ tzinfo (1.2.7)
149
+ thread_safe (~> 0.1)
150
+ webdrivers (4.3.0)
151
+ nokogiri (~> 1.6)
152
+ rubyzip (>= 1.3.0)
153
+ selenium-webdriver (>= 3.0, < 4.0)
154
+ websocket-driver (0.6.5)
155
+ websocket-extensions (>= 0.1.0)
156
+ websocket-extensions (0.1.4)
157
+ xpath (3.2.0)
158
+ nokogiri (~> 1.8)
159
+
160
+ PLATFORMS
161
+ ruby
162
+
163
+ DEPENDENCIES
164
+ bundler (~> 2.1.4)
165
+ projecto!
166
+ rake (~> 13.0)
167
+
168
+ BUNDLED WITH
169
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Anto Dominic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # Projecto
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/projecto`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'projecto'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install projecto
22
+
23
+ Or building the gem
24
+
25
+ $ gem build projecto.gemspec
26
+
27
+ ## Usage
28
+
29
+ ### Running the test for a project
30
+
31
+ $ rake projecto:run_test project=antodominic
32
+
33
+ ### Running the test for a project and a feature
34
+
35
+ $ rake projecto:run_test project=antodominic feature=home_page
36
+
37
+ ### target a external URL for testing
38
+
39
+ $ HOST_ADDRESS=https://www.antodominic.com rake projecto:run_test project=antodominic feature=home_page
40
+
41
+ ## Development
42
+
43
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
44
+
45
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
46
+
47
+ ## Contributing
48
+
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/projecto. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
54
+
55
+ ## Code of Conduct
56
+
57
+ Everyone interacting in the Projecto project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/projecto/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "projecto"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
Binary file
Binary file
@@ -0,0 +1,4 @@
1
+ require 'projecto'
2
+
3
+ path = File.expand_path(__dir__)
4
+ Dir.glob("#{path}/tasks/**/*.rake").each { |f| import f }
@@ -0,0 +1,9 @@
1
+ module Projecto
2
+ class Engine < ::Rails::Engine
3
+ require "rspec-rails"
4
+ require "capybara"
5
+ require "selenium-webdriver"
6
+ require "webdrivers"
7
+ require "sanitize"
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ require "projecto"
2
+ require "rails"
3
+
4
+ module Projecto
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :projecto
7
+ rake_tasks do
8
+ path = File.expand_path(__dir__)
9
+ Dir.glob("#{path}/tasks/*.rake").each { |f| load f }
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ namespace :projecto do
2
+ desc "runing rspec locally"
3
+ task :run_test do
4
+ require "projecto"
5
+ test_path = Projecto.test_path
6
+ build_command = "bundle exec rspec"
7
+ test_feature = ENV["project"]
8
+ test_feature_tag = ENV["feature"]
9
+
10
+ build_command << " #{test_path}/#{test_feature}/*" if test_feature
11
+ build_command << " --tag #{test_feature_tag}" if test_feature && test_feature_tag
12
+
13
+ system(build_command)
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module Projecto
2
+ VERSION = "0.1.1"
3
+ end
data/lib/projecto.rb ADDED
@@ -0,0 +1,15 @@
1
+ require "projecto/version"
2
+ require "projecto/railtie" if defined?(Rails)
3
+ require "projecto/engine"
4
+
5
+ module Projecto
6
+ class Error < StandardError; end
7
+
8
+ def self.root
9
+ File.expand_path '..', __dir__
10
+ end
11
+
12
+ def self.test_path
13
+ File.expand_path("../spec/features", __dir__)
14
+ end
15
+ end
data/projecto.gemspec ADDED
@@ -0,0 +1,45 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "projecto/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "projecto"
8
+ spec.version = Projecto::VERSION
9
+ spec.authors = ["Anto Dominic"]
10
+ spec.email = ["antodoms@gmail.com"]
11
+
12
+ spec.summary = "This is the spec test to be used for in the website"
13
+ spec.description = "To include the project tests in webapp examiner test run needs to be included here"
14
+ spec.homepage = "https://web-examiner.herokuapp.com"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/antodoms/projecto.git"
22
+ spec.metadata["changelog_uri"] = "https://github.com/antodoms/projecto/blob/develop/CHANGELOG.md"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test)/}) }
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_development_dependency "bundler", "~> 2.1.4"
38
+ spec.add_development_dependency "rake", "~> 13.0"
39
+ spec.add_dependency "rails", "~> 5.1.6"
40
+ spec.add_dependency "rspec-rails", "~> 4.0.0"
41
+ spec.add_dependency "capybara", "~> 2.13"
42
+ spec.add_dependency "selenium-webdriver"
43
+ spec.add_dependency "webdrivers"
44
+ spec.add_dependency "sanitize"
45
+ end
@@ -0,0 +1,15 @@
1
+ describe "Blog Post", :blog_post do
2
+ it "shows Blog post heading" do
3
+ visit "/"
4
+ click_on "Blog"
5
+ html = Sanitize.clean(page.body).gsub(/\s+/, " ").strip
6
+ expect(html).to include("Blog Posts")
7
+ end
8
+
9
+ it "has at least 1 blog post" do
10
+ visit "/blog"
11
+ first('.posts a').click
12
+
13
+ page.current_path.should =~ /^\/blog\/[a-zA-Z0-9-]+\.html$/
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ describe "Home Page", :home_page do
2
+ it "shows My Full Name" do
3
+ visit "/"
4
+ html = Sanitize.clean(page.body).gsub(/\s+/, " ").strip
5
+ expect(html).to include("Anto Dominic")
6
+ end
7
+
8
+ it "has portfolio" do
9
+ visit "/"
10
+ html = Sanitize.clean(page.body).gsub(/\s+/, " ").strip
11
+ expect(html).to include("Portfolio")
12
+ end
13
+
14
+ it "has About Me" do
15
+ visit "/"
16
+ html = Sanitize.clean(page.body).gsub(/\s+/, " ").strip
17
+ expect(html).to include("About Me")
18
+ end
19
+
20
+ it "has Contact Us" do
21
+ visit "/"
22
+ html = Sanitize.clean(page.body).gsub(/\s+/, " ").strip
23
+ expect(html).to include("Contact Me")
24
+ end
25
+ end
@@ -0,0 +1,9 @@
1
+ RSpec.describe Projecto do
2
+ it "has a version number" do
3
+ expect(Projecto::VERSION).not_to be nil
4
+ end
5
+
6
+ it "does something useful" do
7
+ expect(false).to eq(true)
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ require "bundler/setup"
2
+ require "projecto"
3
+
4
+ RSpec.configure do |config|
5
+ # Enable flags like --only-failures and --next-failure
6
+ config.example_status_persistence_file_path = ".rspec_status"
7
+
8
+ # Disable RSpec exposing methods globally on `Module` and `main`
9
+ config.disable_monkey_patching!
10
+
11
+ config.expect_with :rspec do |c|
12
+ c.syntax = :expect
13
+ end
14
+ end
@@ -0,0 +1,24 @@
1
+ require "capybara"
2
+ require "selenium-webdriver"
3
+ require "webdrivers"
4
+
5
+ Selenium::WebDriver.logger.level = :error
6
+
7
+ Capybara.register_driver :chrome_headless do |app|
8
+ options = ::Selenium::WebDriver::Chrome::Options.new
9
+
10
+ options.add_argument('--headless')
11
+ options.add_argument('--no-sandbox')
12
+ options.add_argument('--disable-dev-shm-usage')
13
+ options.add_argument('--window-size=1400,1400')
14
+
15
+ Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
16
+ end
17
+
18
+ Capybara.javascript_driver = :chrome_headless
19
+
20
+ Capybara.configure do |config|
21
+ config.run_server = ENV["HOST_ADDRESS"].nil?
22
+ config.default_driver = :chrome_headless
23
+ config.app_host = ENV["HOST_ADDRESS"] if ENV["HOST_ADDRESS"].present?
24
+ end
@@ -0,0 +1,9 @@
1
+ require "sanitize"
2
+ require "rspec-rails"
3
+
4
+ RSpec.configure do |config|
5
+ config.expect_with :rspec do |expectations|
6
+ expectations.syntax = [:expect, :should]
7
+ end
8
+ end
9
+
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: projecto
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Anto Dominic
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-04-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.4
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 5.1.6
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 5.1.6
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.0.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: capybara
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.13'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.13'
83
+ - !ruby/object:Gem::Dependency
84
+ name: selenium-webdriver
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: webdrivers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sanitize
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: To include the project tests in webapp examiner test run needs to be
126
+ included here
127
+ email:
128
+ - antodoms@gmail.com
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".ruby-version"
136
+ - ".travis.yml"
137
+ - CODE_OF_CONDUCT.md
138
+ - Gemfile
139
+ - Gemfile.lock
140
+ - LICENSE.txt
141
+ - README.md
142
+ - Rakefile
143
+ - bin/console
144
+ - bin/setup
145
+ - gem_builds/projecto-0.1.0.gem
146
+ - gem_builds/projecto-0.1.1.gem
147
+ - lib/projecto.rb
148
+ - lib/projecto/Rakefile
149
+ - lib/projecto/engine.rb
150
+ - lib/projecto/railtie.rb
151
+ - lib/projecto/tasks/projecto.rake
152
+ - lib/projecto/version.rb
153
+ - projecto.gemspec
154
+ - spec/features/antodominic/blog_post_spec.rb
155
+ - spec/features/antodominic/home_page_spec.rb
156
+ - spec/projecto_spec.rb
157
+ - spec/spec_helper.rb
158
+ - spec/support/capybara.rb
159
+ - spec/support/test_helper.rb
160
+ homepage: https://web-examiner.herokuapp.com
161
+ licenses:
162
+ - MIT
163
+ metadata:
164
+ homepage_uri: https://web-examiner.herokuapp.com
165
+ source_code_uri: https://github.com/antodoms/projecto.git
166
+ changelog_uri: https://github.com/antodoms/projecto/blob/develop/CHANGELOG.md
167
+ post_install_message:
168
+ rdoc_options: []
169
+ require_paths:
170
+ - lib
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ required_rubygems_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ requirements: []
182
+ rubygems_version: 3.0.3
183
+ signing_key:
184
+ specification_version: 4
185
+ summary: This is the spec test to be used for in the website
186
+ test_files: []