dalliance 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/en.yml +4 -5
- data/lib/dalliance/version.rb +1 -1
- data/spec/dalliance/dalliance_spec.rb +15 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 770b598ecda6d6367cfd24565553f708e299fafe
|
4
|
+
data.tar.gz: 35655132bdd46cc7f08c158f62ee7317639a23cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e6db3bd0dd227225e6fb19478f12dab7ba5eeb6c61ba93b1f3e16f0a7f663989e841f352bc4928194564fe37dc70be43eabd8ace1b2d40b2ca78ad024b3b2f
|
7
|
+
data.tar.gz: 4548bf3c28267439d47e7a35d7ce3c18dcb0366d8ab90044e037e283f5a00e4163839de39c61e6c1738a9f8c3fcab024cebdb86e696e3cd25b8c1d4d668d919c
|
data/config/locales/en.yml
CHANGED
@@ -8,9 +8,8 @@ en:
|
|
8
8
|
validation_error: Validation Error
|
9
9
|
processing_error: Processing Error
|
10
10
|
completed: Completed
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dalliance:
|
11
|
+
attributes:
|
12
|
+
dalliance_status: Status
|
13
|
+
dalliance_error_hash: Errors
|
14
|
+
dalliance_duration: Processing Time
|
16
15
|
dalliance_status_in: Status
|
data/lib/dalliance/version.rb
CHANGED
@@ -3,15 +3,25 @@ require 'spec_helper'
|
|
3
3
|
RSpec.describe 'Dalliance' do
|
4
4
|
subject { DallianceModel.create }
|
5
5
|
|
6
|
+
before(:all) do
|
7
|
+
I18n.backend.store_translations(:en, YAML.load_file(File.open('./config/locales/en.yml'))['en'])
|
8
|
+
end
|
9
|
+
|
6
10
|
context "self#dalliance_status_in_load_select_array" do
|
7
11
|
it "should return [state, human_name]" do
|
8
12
|
expect(DallianceModel.dalliance_status_in_load_select_array).to eq([
|
9
|
-
["
|
10
|
-
["
|
11
|
-
["
|
12
|
-
["
|
13
|
-
["
|
13
|
+
["Completed", "completed"],
|
14
|
+
["Pending", "pending"],
|
15
|
+
["Processing", "processing"],
|
16
|
+
["Processing Error", "processing_error"],
|
17
|
+
["Validation Error", "validation_error"]
|
14
18
|
])
|
15
19
|
end
|
16
20
|
end
|
21
|
+
|
22
|
+
context "human_attribute_name" do
|
23
|
+
it "should display the correct locale" do
|
24
|
+
expect(DallianceModel.human_attribute_name(:dalliance_status)).to eq ('Status')
|
25
|
+
end
|
26
|
+
end
|
17
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dalliance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sullivan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|