solidus_frontend 1.4.0.rc1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_frontend might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80319ff0ed7777aaf7bb222ecde507f48e43f2eb
4
- data.tar.gz: 86ec4cf5e59dd94c4737798bd8f55708ed5b07c8
3
+ metadata.gz: aec96a8c3df53c559ded75ef65a31b8538377f34
4
+ data.tar.gz: 5d68250063bdaa3e9f16e428f4a4bf77f111a697
5
5
  SHA512:
6
- metadata.gz: e19ae38cd370655ce097253e803a75971a48cebef7b4af21281b69120ae2c3faea0a2ffc8237b2e45a03cd78ea0d5f3f9757f35c5971a1abd18fbe10306a450b
7
- data.tar.gz: 6ee706ceabcc530e3704e1cf8f95087af0abf1dce2f75f18926568385b415dd44f56023cc95b89d7c99fb20be9ccdffaa85da64f507c9baba1a73daff4ffeeed
6
+ metadata.gz: 5851f31cd6cc8c52c187f43af85ab69e8bb8ea6831d917e3c91d540945aee0da5c0bbf61ef6765d924470924bdf8a74a2b49558b219b49d45e754ffebd506b1b
7
+ data.tar.gz: b9760655c1ef97e0bc6fc63c174ba9bbfd9bfb21b9d5eb13b8779c7f64489eb895d440f7acc0678462fd0c40ff540d05cfc1f447b2d7258909116d68b9defecb
@@ -491,6 +491,47 @@ describe "Checkout", type: :feature, inaccessible: true do
491
491
  end
492
492
  end
493
493
 
494
+ context "using credit card" do
495
+ let!(:payment_method) { create(:credit_card_payment_method) }
496
+
497
+ # Regression test for https://github.com/solidusio/solidus/issues/1421
498
+ it "works with card number 1", js: true do
499
+ add_mug_to_cart
500
+
501
+ click_on "Checkout"
502
+ fill_in "order_email", with: "test@example.com"
503
+ fill_in_address
504
+ click_on "Save and Continue"
505
+ click_on "Save and Continue"
506
+
507
+ fill_in_credit_card(number: "1")
508
+ click_on "Save and Continue"
509
+
510
+ expect(page).to have_current_path("/checkout/confirm")
511
+ end
512
+
513
+ it "works with card number 4111111111111111", js: true do
514
+ add_mug_to_cart
515
+
516
+ click_on "Checkout"
517
+ fill_in "order_email", with: "test@example.com"
518
+ fill_in_address
519
+ click_on "Save and Continue"
520
+ click_on "Save and Continue"
521
+
522
+ fill_in_credit_card(number: "4111111111111111")
523
+ click_on "Save and Continue"
524
+
525
+ expect(page).to have_current_path("/checkout/confirm")
526
+ end
527
+ end
528
+
529
+ def fill_in_credit_card(number:)
530
+ fill_in "Card Number", with: number
531
+ fill_in "Expiration", with: "1224"
532
+ fill_in "Card Code", with: "123"
533
+ end
534
+
494
535
  def fill_in_address
495
536
  address = "order_bill_address_attributes"
496
537
  fill_in "#{address}_firstname", with: "Ryan"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.rc1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2016-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.0.rc1
19
+ version: 1.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.0.rc1
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0.rc1
33
+ version: 1.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.0.rc1
40
+ version: 1.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: canonical-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -340,9 +340,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
340
340
  version: 2.1.0
341
341
  required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  requirements:
343
- - - ">"
343
+ - - ">="
344
344
  - !ruby/object:Gem::Version
345
- version: 1.3.1
345
+ version: '0'
346
346
  requirements:
347
347
  - none
348
348
  rubyforge_project: solidus_frontend