Sha256: 8bc8a238cab7d449f23ac69a8ddf2943106a50406db6fe56e175f42097ed09e4
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' class CupcakinatorSpecFoo include Cupcakinator cupcakinate method: 'config', file: 'config.yml' end class CupcakinatorSpecBar < CupcakinatorSpecFoo cupcakinate method: 'bar_config' end class CupcakinatorSpecBaz include Cupcakinator cupcakinate method: 'baz_config' end describe Cupcakinator do context 'inheritence' do it "parent should not have child's options" do CupcakinatorSpecFoo._cupcakinator_options[:method].should == 'config' end it "child should not have parent's options" do CupcakinatorSpecBar._cupcakinator_options[:method].should == 'bar_config' end end context 'multiple uses' do it "should exist separately per invocation" do CupcakinatorSpecBaz._cupcakinator_options[:method].should_not eq CupcakinatorSpecFoo._cupcakinator_options[:method] end end context 'localization' do it 'should have loaded the locales file' do I18n.t('error.deprecation.include_base').should =~ /don't include Cupcakinator::Base directly/ end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cupcakinator-1.1.1 | spec/cupcakinator_spec.rb |
cupcakinator-1.1.0 | spec/cupcakinator_spec.rb |
cupcakinator-1.0.1 | spec/cupcakinator_spec.rb |
cupcakinator-1.0.0 | spec/cupcakinator_spec.rb |