mirror of
https://github.com/nov/fb_graph2
synced 2023-03-27 23:22:15 -04:00
will work on tests later
This commit is contained in:
parent
1d8c1706f1
commit
d62c42c8a9
3 changed files with 3 additions and 14 deletions
2
Rakefile
2
Rakefile
|
@ -15,4 +15,4 @@ task :spec do
|
||||||
Rake::Task[:'coverage:report'].invoke unless ENV['TRAVIS_RUBY_VERSION']
|
Rake::Task[:'coverage:report'].invoke unless ENV['TRAVIS_RUBY_VERSION']
|
||||||
end
|
end
|
||||||
|
|
||||||
task :default => :spec
|
task default: :spec
|
|
@ -51,7 +51,7 @@ module FbGraph2
|
||||||
private
|
private
|
||||||
|
|
||||||
def edge_for(edge, params = {}, options = {})
|
def edge_for(edge, params = {}, options = {})
|
||||||
collection = get params, options.merge(:edge => edge)
|
collection = get params, options.merge(edge: edge)
|
||||||
Collection.new collection
|
Collection.new collection
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,5 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe FbGraph2::Node do
|
describe FbGraph2::Node do
|
||||||
describe '.new' do
|
it :TODO
|
||||||
it 'should support access_token option' do
|
|
||||||
FbGraph2::Node.new(
|
|
||||||
'matake', :access_token => 'access_token'
|
|
||||||
).access_token.should == 'access_token'
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should store raw attributes' do
|
|
||||||
attributes = {:key => :value}
|
|
||||||
FbGraph2::Node.new(12345, attributes).raw_attributes.should == attributes
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
Loading…
Reference in a new issue