mirror of
https://github.com/nov/fb_graph2
synced 2023-03-27 23:22:15 -04:00
basic node spec
This commit is contained in:
parent
8562584647
commit
0c607111de
1 changed files with 25 additions and 1 deletions
|
@ -1,5 +1,29 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe FbGraph2::Node do
|
||||
it :TODO
|
||||
let(:klass) { FbGraph2::Node }
|
||||
let(:instance) { klass.new 'identifier' }
|
||||
|
||||
context 'class' do
|
||||
subject { klass }
|
||||
it { should_not respond_to :register_attributes }
|
||||
it { should_not respond_to :registered_attributes }
|
||||
it { should_not respond_to :registered_attributes= }
|
||||
end
|
||||
|
||||
context 'instance' do
|
||||
subject { instance }
|
||||
it { should_not respond_to :assign }
|
||||
|
||||
describe '#initialize' do
|
||||
its(:id) { should == 'identifier' }
|
||||
its(:access_token) { should be_nil }
|
||||
its(:raw_attributes) { should be_nil }
|
||||
end
|
||||
|
||||
describe '#authenticate' do
|
||||
before { instance.authenticate 'access_token' }
|
||||
its(:access_token) { should == 'access_token' }
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue