spec/unit/helpers/settings_spec.rb in yousty-activeadmin-1.0.4.pre vs spec/unit/helpers/settings_spec.rb in yousty-activeadmin-1.0.5.pre

- old
+ new

@@ -1,6 +1,6 @@ -require 'spec_helper' +require 'rails_helper' require 'active_admin/helpers/settings' describe ActiveAdmin::Settings do # A Class with settings module included @@ -10,21 +10,21 @@ end end it "should add a new setting with a default" do klass.setting :my_setting, "Hello World" - klass.default_settings[:my_setting].should == "Hello World" + expect(klass.default_settings[:my_setting]).to eq "Hello World" end it "should initialize the defaults" do klass.setting :my_setting, "Hello World" - klass.new.my_setting.should == "Hello World" + expect(klass.new.my_setting).to eq "Hello World" end it "should support settings of nil" do klass.setting :my_setting, :some_val inst = klass.new inst.my_setting = nil - inst.my_setting.should == nil + expect(inst.my_setting).to eq nil end end