roadkill 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -0
- data/bin/roadkill +1 -1
- data/files/generate/ready/{integration → acceptance}/sample_spec.rb +0 -0
- data/files/generate/ready/spec +1 -1
- data/files/sample_app/tests/{integration → acceptance}/homepage_spec.rb +0 -0
- data/lib/roadkill/version.rb +1 -1
- metadata +3 -5
- data/spec +0 -2
- data/spec_helper.rb +0 -21
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Roadkill
|
2
2
|
|
3
|
+
Automated testing for web apps written in *any* language.
|
4
|
+
|
3
5
|
##TL;DR:
|
4
6
|
This gem lets you easily install [Capybara](https://github.com/jnicklas/capybara) with [PhantomJS](https://github.com/ariya/phantomjs) and easily use them from *any* web application project directory so that you can start writing tests for your web application's pages right away.
|
5
7
|
|
data/bin/roadkill
CHANGED
@@ -131,7 +131,7 @@ class Roadkill < Thor
|
|
131
131
|
template "../files/generate/templates/spec_helper.rb.tt", "#{tests_dir}/spec_helper.rb", config[:environment]
|
132
132
|
|
133
133
|
say ""
|
134
|
-
say "Your testing suite is ready! You can now make tests in the '
|
134
|
+
say "Your testing suite is ready! You can now make tests in the 'acceptance' directory."
|
135
135
|
say ""
|
136
136
|
if use_database
|
137
137
|
say "Note: since you entered database information, we created a '.gitignore' file in the tests directory which will ignore the database.yml file by default. This is to prevent accidentally committing your database information to your repository."
|
File without changes
|
data/files/generate/ready/spec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
Dir["
|
2
|
+
Dir["acceptance/*_spec.rb"].each { |f| require_relative f}
|
File without changes
|
data/lib/roadkill/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roadkill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -140,9 +140,9 @@ files:
|
|
140
140
|
- bin/roadkill
|
141
141
|
- files/generate/.rspec
|
142
142
|
- files/generate/ready/.gitignore
|
143
|
+
- files/generate/ready/acceptance/sample_spec.rb
|
143
144
|
- files/generate/ready/database.yml.sample
|
144
145
|
- files/generate/ready/db_connect.rb
|
145
|
-
- files/generate/ready/integration/sample_spec.rb
|
146
146
|
- files/generate/ready/spec
|
147
147
|
- files/generate/templates/Gemfile.tt
|
148
148
|
- files/generate/templates/database.yml.tt
|
@@ -150,7 +150,7 @@ files:
|
|
150
150
|
- files/sample_app/config.ru
|
151
151
|
- files/sample_app/home.html
|
152
152
|
- files/sample_app/tests/.rspec
|
153
|
-
- files/sample_app/tests/
|
153
|
+
- files/sample_app/tests/acceptance/homepage_spec.rb
|
154
154
|
- files/sample_app/todo_app.rb
|
155
155
|
- integration/welcome_spec.rb
|
156
156
|
- lib/roadkill.rb
|
@@ -158,8 +158,6 @@ files:
|
|
158
158
|
- models.rb
|
159
159
|
- roadkill.gemspec
|
160
160
|
- setup/install_phantomjs_64bit.sh
|
161
|
-
- spec
|
162
|
-
- spec_helper.rb
|
163
161
|
- todos.txt
|
164
162
|
homepage: https://github.com/agapered/roadkill
|
165
163
|
licenses:
|
data/spec
DELETED
data/spec_helper.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
#require 'capybara/mechanize'
|
3
|
-
require 'capybara/rspec'
|
4
|
-
require 'capybara/poltergeist'
|
5
|
-
require 'active_record'
|
6
|
-
require 'pry'
|
7
|
-
require './models'
|
8
|
-
|
9
|
-
ActiveRecord::Base.establish_connection({
|
10
|
-
adapter: :postgresql,
|
11
|
-
host: "localhost",
|
12
|
-
username: "postgres",
|
13
|
-
password: "password",
|
14
|
-
datababase: "integration_testing"
|
15
|
-
})
|
16
|
-
|
17
|
-
include Capybara::DSL
|
18
|
-
Capybara.javascript_driver = Capybara.default_driver = :poltergeist
|
19
|
-
Capybara.app_host = "http://localhost:3000"
|
20
|
-
Capybara.run_server = false
|
21
|
-
|