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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb778d1d1e00423a8685e3896291e63c651effa2c0bc9118fa79d8d0d61cb769
4
- data.tar.gz: 43aa5e905d9ed5f14402c492cb5086baf2700276521b9cffc67b949a45eb1228
3
+ metadata.gz: aae2ee8af5bc58f866014195d209fe1c79f38782abd34d9754fab0dd1e0d6339
4
+ data.tar.gz: 9b996dccb18d1ee0aa677d6f2cdd3956077ac5f769b41bcccc262c197fefbf4b
5
5
  SHA512:
6
- metadata.gz: d0313aae650d6766df11f3578b1f47728dc42e357f6519fff044d644759d530659dd6a56fe94d80029353c1ca8fad3094478883fb1b5c3b41fee793290cd0ddf
7
- data.tar.gz: 27427489462c8de4a93fa27f3cdbe81b56662c8138e0fa929a24e377022574f28c0978180c36c80ab0e0f7d548760564c0f2cf3c30d5ee1a42f7c8d0462d47b6
6
+ metadata.gz: c846da7db38f8b685aa9777851b16b03425410b10e6699d7ac995ce9a2840cc43659774d41550266752e80d3b49ed90bf44c3fe0bcaa35ce45e369bca26d50e6
7
+ data.tar.gz: b33a157691f8cb4629d9f853aa26d3dfec134ae3aefa598f44d5100be3d376340563778753c0a62e193a70990f17140fb622ee561100677d0aca39419802956e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.1
2
+ ### Fixed
3
+ * install generator adding on-rails.js to import.js
4
+
1
5
  ## 1.0.0
2
6
  * renamed to CypressDev
3
7
  * middleware stripped down to make it more flexible and generic
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CypressDev
2
2
 
3
- [![Build Status](https://travis-ci.org/grantspeelman/cypress_dev.svg?branch=master)](https://travis-ci.org/grantspeelman/cypress_dev)
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
- ## Usage
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
- When writing End-to-End tests, you will probably want to prepare your database to a known state.
50
- Maybe using a gem like factory_bot. This gem implements two methods to achieve this goal:
53
+ ## Usage
51
54
 
52
- example of getting started
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.
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module CypressDev
2
- VERSION = "1.0.0"
2
+ VERSION = '1.0.1'
3
3
  end
@@ -38,7 +38,7 @@ module CypressDev
38
38
 
39
39
  def update_files
40
40
  append_to_file "#{options.cypress_folder}/support/index.js",
41
- 'import \'./on-rails\'',
41
+ "\nimport './on-rails'",
42
42
  after: 'import \'./commands\''
43
43
  end
44
44
 
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.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-19 00:00:00.000000000 Z
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: []