Sha256: e5367d01930357574711538e5dc5866439e075dc749b25524c0147db91fb7658
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 Bytes
Contents
require 'rest-core/test' describe RestCore::Facebook do should 'honor default attributes' do RestCore::Facebook.members.reject{ |name| name.to_s =~ /method$|handler$|detector$/ }.each{ |name| RestCore::Facebook.new.send(name).should == RestCore::Facebook.new.send("default_#{name}") } end should 'use module to override default attributes' do klass = RestCore::Facebook.dup klass.send(:include, Module.new do def default_app_id '1829' end end) klass.new.app_id.should.eq('1829') end end
Version data entries
6 entries across 6 versions & 2 rubygems