Sha256: 69410a549fc1141e4461241f6376cf5d8b2bddda39fbb680116fed23667bc604
Contents?: true
Size: 713 Bytes
Versions: 5
Compression:
Stored size: 713 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 TestHelper.attrs_no_callback.each{ |name| RestGraph.new.send(name).should == RestGraph.send("default_#{name}") RestGraph.new.send(name).should == RestGraph::DefaultAttributes.send("default_#{name}") } end should 'use module to override default attributes' do module BlahAttributes def default_app_id '1829' end end TestHelper.ensure_rollback{ RestGraph.send(:extend, BlahAttributes) RestGraph.default_app_id.should == '1829' } end end
Version data entries
5 entries across 5 versions & 1 rubygems