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

Version Path
backup-3.0.19 spec/configuration/base_spec.rb
backup-3.0.18 spec/configuration/base_spec.rb
interu-backup-3.0.16 spec/configuration/base_spec.rb
backup-3.0.16 spec/configuration/base_spec.rb
backup-3.0.15 spec/configuration/base_spec.rb
backup-3.0.14 spec/configuration/base_spec.rb
backup-3.0.13 spec/configuration/base_spec.rb
backup-3.0.12 spec/configuration/base_spec.rb
backup-3.0.11 spec/configuration/base_spec.rb
alg-backup-3.0.10 spec/configuration/base_spec.rb
backup-3.0.10 spec/configuration/base_spec.rb
backup-3.0.9 spec/configuration/base_spec.rb
backup-3.0.8 spec/configuration/base_spec.rb
backup-3.0.7 spec/configuration/base_spec.rb
backup-3.0.6 spec/configuration/base_spec.rb
backup-3.0.5 spec/configuration/base_spec.rb
backup-3.0.4 spec/configuration/base_spec.rb
backup-3.0.3 spec/configuration/base_spec.rb
backup-3.0.2.build.0 spec/configuration/base_spec.rb
backup-3.0.2 spec/configuration/base_spec.rb