cypress-on-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +8 -12
- data/cypress-on-rails.gemspec +2 -2
- data/lib/cypress_dev/version.rb +1 -1
- data/lib/generators/cypress_dev/install_generator.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aae2ee8af5bc58f866014195d209fe1c79f38782abd34d9754fab0dd1e0d6339
|
4
|
+
data.tar.gz: 9b996dccb18d1ee0aa677d6f2cdd3956077ac5f769b41bcccc262c197fefbf4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c846da7db38f8b685aa9777851b16b03425410b10e6699d7ac995ce9a2840cc43659774d41550266752e80d3b49ed90bf44c3fe0bcaa35ce45e369bca26d50e6
|
7
|
+
data.tar.gz: b33a157691f8cb4629d9f853aa26d3dfec134ae3aefa598f44d5100be3d376340563778753c0a62e193a70990f17140fb622ee561100677d0aca39419802956e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# CypressDev
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/grantspeelman/
|
3
|
+
[![Build Status](https://travis-ci.org/grantspeelman/cypress-on-rails.svg?branch=master)](https://travis-ci.org/grantspeelman/cypress-on-rails)
|
4
4
|
|
5
5
|
Gem for using [cypress.io](http://github.com/cypress-io/) in Rails and ruby rack applications
|
6
6
|
with the goal of controlling State as mentioned in [Cypress Best Practices](https://docs.cypress.io/guides/references/best-practices.html#Organizing-Tests-Logging-In-Controlling-State)
|
@@ -44,12 +44,15 @@ The generator adds the following files/directory to your application:
|
|
44
44
|
if you are not using database_cleaner look at `spec/cypress/app_commands/clean_db.rb`.
|
45
45
|
if you are not using factory_bot look at `spec/cypress/app_commands/factory_bot.rb`.
|
46
46
|
|
47
|
-
|
47
|
+
Now you can create scenarios and commands that are plan ruby files that get loaded through middleware, the ruby sky is your limit.
|
48
|
+
|
49
|
+
### WARNING
|
50
|
+
*WARNING!!:* cypress-on-rails can execute arbitrary ruby code
|
51
|
+
Please use with extra caution if starting your local server on 0.0.0.0 or running on a hosted server
|
48
52
|
|
49
|
-
|
50
|
-
Maybe using a gem like factory_bot. This gem implements two methods to achieve this goal:
|
53
|
+
## Usage
|
51
54
|
|
52
|
-
|
55
|
+
Start the rails server in test mode and start cypress
|
53
56
|
|
54
57
|
```
|
55
58
|
# start rails
|
@@ -61,13 +64,6 @@ cd spec
|
|
61
64
|
yarn run cypress open
|
62
65
|
```
|
63
66
|
|
64
|
-
Now you can create scenarios and commands that are plan ruby files that get loaded
|
65
|
-
through middleware, the ruby sky is your limit.
|
66
|
-
|
67
|
-
### WARNING
|
68
|
-
*WARNING!!:* cypress-on-rails can execute arbitrary ruby code
|
69
|
-
Please use with extra caution if starting your local server on 0.0.0.0 or running on a hosted server
|
70
|
-
|
71
67
|
### Example of using scenarios
|
72
68
|
|
73
69
|
Scenarios are named `before` blocks that you can reference in your test.
|
data/cypress-on-rails.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "cypress_dev/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "cypress-on-rails"
|
7
7
|
s.version = CypressDev::VERSION
|
8
|
-
s.author = ["miceportal team"]
|
9
|
-
s.email = ["info@miceportal.de"]
|
8
|
+
s.author = ["miceportal team", 'Grant Petersen-Speelman']
|
9
|
+
s.email = ["info@miceportal.de", 'grantspeelman@gmail.com']
|
10
10
|
s.homepage = "http://github.com/grantspeelman/cypress-on-rails"
|
11
11
|
s.summary = "Integrates cypress with rails or rack applications"
|
12
12
|
s.description = "Integrates cypress with rails or rack applications"
|
data/lib/cypress_dev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cypress-on-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miceportal team
|
8
|
+
- Grant Petersen-Speelman
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
12
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rack
|
@@ -69,6 +70,7 @@ dependencies:
|
|
69
70
|
description: Integrates cypress with rails or rack applications
|
70
71
|
email:
|
71
72
|
- info@miceportal.de
|
73
|
+
- grantspeelman@gmail.com
|
72
74
|
executables: []
|
73
75
|
extensions: []
|
74
76
|
extra_rdoc_files: []
|