spec/lib/te3270/screen_factory_spec.rb in te3270-0.7.1 vs spec/lib/te3270/screen_factory_spec.rb in te3270-0.8.0

- old
+ new

@@ -20,18 +20,18 @@ let(:world) { World.new } it 'should create a new screen object' do emulator = double('platform') world.instance_variable_set('@emulator', emulator) - world.on(ScreenFactoryScreen).should be_instance_of ScreenFactoryScreen + expect(world.on(ScreenFactoryScreen)).to be_instance_of ScreenFactoryScreen end it 'should create a new screen object and execute a block' do emulator = double('platform') world.instance_variable_set('@emulator', emulator) world.on(ScreenFactoryScreen) do |page| - page.should be_instance_of ScreenFactoryScreen + expect(page).to be_instance_of ScreenFactoryScreen end end it 'should raise an error when an @emulator instance variable does not exist' do expect { world.on(ScreenFactoryScreen) }.to raise_error("@emulator instance variable must be available to use the ScreenFactory methods") @@ -41,8 +41,8 @@ class NoTE end emulator = double('platform') world.instance_variable_set('@emulator', emulator) world.on(NoTE) - world.super_called.should be true + expect(world.super_called).to be true end end \ No newline at end of file