solidus_frontend 2.0.0.rc1 → 2.0.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: 1a104fe2ffd8b36f5944c42da22fa8cdf22588f3
4
- data.tar.gz: 889ff9efc5d730814122dc12ede130c8f4083574
3
+ metadata.gz: 4c446e1901df17221455dfc1d2f9f850fb464932
4
+ data.tar.gz: a225673ecbc5aa7ec3a39ab052804c2a0b897590
5
5
  SHA512:
6
- metadata.gz: 0a4a9123be9053c90604766ebbb6d5efd30d1f5c2a94647d441577d393dd21557f3f0aae8169f3531637e14780741f2725012dcd89302a86dcfcbcce35ad4acd
7
- data.tar.gz: 8f8d6b5325c33c167dcd7ca30f6c65f7d5843cc5518adc1a2e5aa00e800ac6b6e3c83ce2218b520bfa48f77b332a96531c3f7c78e64c4b45dd36d3401f6c7043
6
+ metadata.gz: 2d8b8aa67eeb9cc41f9c913688370adbafd505f1afab8e8f04ac63151cfde679a717750e751d5f714e095bddb6b8862cdbf284c5fd270ad2e91884a4004c028b
7
+ data.tar.gz: f45b46e808a67e3ba6777f9140c8905b85984533e639de88935078dc3a67c9f9baa1d577aec7f8448264554414dbd8c866b1df3bfba940964611bcde9865b6fa
@@ -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: 2.0.0.rc1
4
+ version: 2.0.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: 2.0.0.rc1
19
+ version: 2.0.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: 2.0.0.rc1
26
+ version: 2.0.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: 2.0.0.rc1
33
+ version: 2.0.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: 2.0.0.rc1
40
+ version: 2.0.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