fb_graph 1.7.3 → 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/fb_graph/test_user.rb +2 -1
- data/spec/fb_graph/test_user_spec.rb +5 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.4
|
data/lib/fb_graph/test_user.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
module FbGraph
|
2
2
|
class TestUser < User
|
3
|
-
attr_accessor :login_url
|
3
|
+
attr_accessor :login_url, :password
|
4
4
|
|
5
5
|
def initialize(identifier, attributes = {})
|
6
6
|
super
|
7
7
|
@login_url = attributes[:login_url]
|
8
|
+
@password = attributes[:password]
|
8
9
|
end
|
9
10
|
|
10
11
|
def friend!(test_user)
|
@@ -7,11 +7,15 @@ describe FbGraph::TestUser, '.new' do
|
|
7
7
|
:id => 12345,
|
8
8
|
:access_token => 'access_token',
|
9
9
|
:name => 'nov',
|
10
|
-
:login_url => 'https://www.facebook.com/login/test-user/12345'
|
10
|
+
:login_url => 'https://www.facebook.com/login/test-user/12345',
|
11
|
+
:email => 'test1@client.example.com',
|
12
|
+
:password => 'password'
|
11
13
|
}
|
12
14
|
test_user = FbGraph::TestUser.new(attributes.delete(:id), attributes)
|
13
15
|
test_user.login_url.should == 'https://www.facebook.com/login/test-user/12345'
|
14
16
|
test_user.name.should == 'nov'
|
17
|
+
test_user.email.should == 'test1@client.example.com'
|
18
|
+
test_user.password.should == 'password'
|
15
19
|
end
|
16
20
|
|
17
21
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fb_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.7.
|
5
|
+
version: 1.7.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- nov matake
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack-oauth2
|