spec/bogus/fakes/copies_classes_spec.rb in bogus-0.1.5 vs spec/bogus/fakes/copies_classes_spec.rb in bogus-0.1.6
- old
+ new
@@ -123,19 +123,19 @@
it "should copy the class name" do
expect(fake.class.name).to eq 'SomeModule::SomeClass'
end
it "should override kind_of?" do
- expect(fake.kind_of?(SomeModule::SomeClass)).to be_true
+ expect(fake.kind_of?(SomeModule::SomeClass)).to be(true)
end
it "should override instance_of?" do
- expect(fake.instance_of?(SomeModule::SomeClass)).to be_true
+ expect(fake.instance_of?(SomeModule::SomeClass)).to be(true)
end
it "should override is_a?" do
- expect(fake.is_a?(SomeModule::SomeClass)).to be_true
+ expect(fake.is_a?(SomeModule::SomeClass)).to be(true)
end
it "should include class name in the output of fake's class #to_s" do
expect(fake.class.to_s).to include(klass.name)
end
@@ -143,16 +143,16 @@
it "should include class name in the output of fake's #to_s" do
expect(fake.to_s).to include(klass.name)
end
it 'should override ===' do
- expect(SomeModule::SomeClass === fake).to be_true
+ expect(SomeModule::SomeClass === fake).to be(true)
end
end
shared_examples_for 'spying' do
def should_record(method, *args)
- mock(subject).__record__(method, *args)
+ expect(subject).to receive(:__record__).with(method, *args)
subject.send(method, *args)
end
it "records method calls with no arguments" do