1
0
Fork 0
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:
nov 2014-05-05 23:36:40 +09:00
parent 8562584647
commit 0c607111de

View file

@ -1,5 +1,29 @@
require 'spec_helper' require 'spec_helper'
describe FbGraph2::Node do 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 end