will work on tests later

This commit is contained in:
nov 2014-05-05 20:43:29 +09:00
parent 1d8c1706f1
commit d62c42c8a9
3 changed files with 3 additions and 14 deletions

View File

@ -15,4 +15,4 @@ task :spec do
Rake::Task[:'coverage:report'].invoke unless ENV['TRAVIS_RUBY_VERSION']
end
task :default => :spec
task default: :spec

View File

@ -51,7 +51,7 @@ module FbGraph2
private
def edge_for(edge, params = {}, options = {})
collection = get params, options.merge(:edge => edge)
collection = get params, options.merge(edge: edge)
Collection.new collection
end

View File

@ -1,16 +1,5 @@
require 'spec_helper'
describe FbGraph2::Node do
describe '.new' do
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
it :TODO
end