accounts_client 0.2.36 → 0.2.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/accounts/shared_examples.rb +3 -3
- 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: cf86f538741a9bccbac93a6a10876e6a55895cdb
|
4
|
+
data.tar.gz: 0dd3c3db4e3805dde8ea66e8f7ba3c700b2c26e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28ff0e5faf28bf95f35f63d3b889d6890198f9f9072b60029e717e726da0a16f5f42ad52f2347991d25d667268d36078e7c94f16737795e0f36e5491f71e913d
|
7
|
+
data.tar.gz: 6018097963b6422168bf750094f203a78cf2a6abd741cbb37381c7aa54332c9af6dd395f6c6aee290eec742fc248e994c77d6da255e2a3502cad5a3ae002cb26
|
@@ -1,7 +1,7 @@
|
|
1
1
|
shared_examples_for "it belongs to an account" do
|
2
2
|
it { should validate_presence_of :account_name }
|
3
3
|
it "should return account on #account" do
|
4
|
-
PadmaAccount.
|
4
|
+
expect(PadmaAccount).to receive(:find).with(object.account_name).and_return(PadmaAccount.new(account_name: object.account_name))
|
5
5
|
object.account.should be_a(PadmaAccount)
|
6
6
|
end
|
7
7
|
end
|
@@ -9,8 +9,8 @@ end
|
|
9
9
|
shared_examples_for "it belongs to a user" do
|
10
10
|
it { should validate_presence_of :username}
|
11
11
|
it "should return user on #user" do
|
12
|
-
PadmaUser.
|
12
|
+
expect(PadmaUser).to receive(:find).with(object.username).and_return(PadmaUser.new(username: object.username))
|
13
13
|
object.user.should be_a(PadmaUser)
|
14
14
|
end
|
15
15
|
it "should use Rails.cache"
|
16
|
-
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accounts_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|