Sha256: 69ad4c09cdaeeb324fa80d08f279a06336f953aac0dbc947b3d89016f9c16f60
Contents?: true
Size: 615 Bytes
Versions: 4
Compression:
Stored size: 615 Bytes
Contents
if respond_to?(:require_relative, true) require_relative 'common' else require File.dirname(__FILE__) + '/common' end describe RestGraph do should 'honor default attributes' do RestGraph.members.reject{ |name| name.to_s =~ /method$|handler$|detector$/ }.each{ |name| RestGraph.new.send(name).should == RestGraph .send("default_#{name}") } end should 'use module to override default attributes' do klass = RestGraph.dup klass.send(:extend, Module.new do def default_app_id '1829' end end) klass.new.app_id.should == '1829' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rest-graph-2.0.3 | test/test_default.rb |
rest-graph-2.0.2 | test/test_default.rb |
rest-graph-2.0.1 | test/test_default.rb |
rest-graph-2.0.0 | test/test_default.rb |