Sha256: 864950e266ed6e627b5798d8ab8ca4214c2ae21fd54d64ea963961b66bde93d5
Contents?: true
Size: 1.06 KB
Versions: 24
Compression:
Stored size: 1.06 KB
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../spec_helper' describe Backup::Configuration::Helpers do before do class Backup::Configuration::Base class << self attr_accessor :rspec_method, :rspec_test, :rspec_mocha end end end it 'should clear the defaults' do Backup::Configuration::Base.expects(:send).with('rspec_method=', nil) Backup::Configuration::Base.expects(:send).with('rspec_test=', nil) Backup::Configuration::Base.expects(:send).with('rspec_mocha=', nil) Backup::Configuration::Base.clear_defaults! end it 'should return the setters' do Backup::Configuration::Base.setter_methods.count.should == 3 %w[rspec_method= rspec_test= rspec_mocha=].each do |method| Backup::Configuration::Base.setter_methods.should include(method) end end it 'should return the getters' do Backup::Configuration::Base.getter_methods.count.should == 3 %w[rspec_method rspec_test rspec_mocha].each do |method| Backup::Configuration::Base.getter_methods.should include(method) end end end
Version data entries
24 entries across 24 versions & 3 rubygems