spec/app/models/metasploit/model/association/reflection_spec.rb in metasploit-model-1.0.0.pre.rails.pre.4.0 vs spec/app/models/metasploit/model/association/reflection_spec.rb in metasploit-model-1.0.0

- old
+ new

@@ -1,12 +1,10 @@ -require 'spec_helper' - -describe Metasploit::Model::Association::Reflection do +RSpec.describe Metasploit::Model::Association::Reflection, type: :model do context 'validations' do - it { should validate_presence_of :model } - it { should validate_presence_of :name } - it { should validate_presence_of :class_name } + it { is_expected.to validate_presence_of :model } + it { is_expected.to validate_presence_of :name } + it { is_expected.to validate_presence_of :class_name } end context '#klass' do subject(:klass) do reflection.klass @@ -40,9 +38,9 @@ before(:each) do stub_const(class_name, class_name_class) end it 'should return Class with Class#name #class_name' do - klass.should == class_name_class + expect(klass).to eq(class_name_class) end end end \ No newline at end of file