Sha256: 6e3867c022adfc055655314b2deb7cdcef19de5f81d5a709ed52aae5bc6d5c5f
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# encoding: utf-8 require File.expand_path('../../spec_helper.rb', __FILE__) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.20 | spec/configuration/base_spec.rb |