Sha256: b589b6741297d0ca10dabf2234d632dacc19772f5b20aff4b1f93ab0e2b1c8b1
Contents?: true
Size: 843 Bytes
Versions: 10
Compression:
Stored size: 843 Bytes
Contents
require 'spec_helper' include Gametel::Navigation class NavigationScreen end describe Gametel::Navigation do let(:screen) { double 'gametel screen' } before(:each) do ::Time.stub(:now).and_return(0) NavigationScreen.should_receive(:new).and_return(screen) end it "is cool, if you don't care about :active?" do on(NavigationScreen) end it "cares about :active? if you do" do screen.should_receive(:active?).and_return(true) on(NavigationScreen) end it "will still wait on you, though" do screen.stub(:active?).and_return(true) self.should_receive(:wait_until) on(NavigationScreen) end it "should say what we are waiting on" do screen.stub(:active?).and_return(true) self.should_receive(:wait_until).with(10, "NavigationScreen to be active") on(NavigationScreen) end end
Version data entries
10 entries across 10 versions & 1 rubygems