Sha256: e5b6022ca6c29e57be161d6a9e49a0b6e64acbbbe93c57b238f8cc3440c96261
Contents?: true
Size: 978 Bytes
Versions: 5
Compression:
Stored size: 978 Bytes
Contents
require 'test_helper' module Vedeu module Repositories class DefaultsTestClass include Vedeu::Repositories::Defaults private def defaults { some_attribute: :some_value } end end # DefaultsTestClass describe Defaults do let(:described) { Vedeu::Repositories::Defaults } let(:includer) { Vedeu::Repositories::DefaultsTestClass } let(:instance) { includer.new(attributes) } let(:attributes) { { invalid_attribute: :invalid_value } } describe '#initialize' do it { instance.must_be_instance_of(includer) } it do instance.instance_variable_get('@some_attribute'). must_equal(:some_value) end it do instance.instance_variables. must_equal([:@some_attribute]) end end # @todo Add more tests. end # Defaults end # Repositories end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems