spec/cupcakinator_spec.rb in cupcakinator-1.1.2 vs spec/cupcakinator_spec.rb in cupcakinator-2.0.0
- old
+ new
@@ -20,32 +20,32 @@
describe Cupcakinator do
context 'inheritence' do
it "parent should not have child's options" do
- CupcakinatorSpecFoo._cupcakinator_options[:method].should == 'config'
+ expect(CupcakinatorSpecFoo._cupcakinator_options[:method]).to eq 'config'
end
it "child should not have parent's options" do
- CupcakinatorSpecBar._cupcakinator_options[:method].should == 'bar_config'
+ expect(CupcakinatorSpecBar._cupcakinator_options[:method]).to eq '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]
+ expect(CupcakinatorSpecBaz._cupcakinator_options[:method]).not_to eq CupcakinatorSpecFoo._cupcakinator_options[:method]
end
end
context 'localization' do
it 'should have loaded the locales file' do
- I18n.t('cupcakinator.error.deprecation.include_base').should =~ /don't include Cupcakinator::Base directly/
+ expect(I18n.t('cupcakinator.error.deprecation.include_base')).to match /don't include Cupcakinator::Base directly/
end
end
end