Sha256: dde54c809c27d6f615ec5e1f26ea55401b8cc0d285b89593d511d1050b1e6ed9
Contents?: true
Size: 693 Bytes
Versions: 3
Compression:
Stored size: 693 Bytes
Contents
require 'spec_helper' class NavigationScreen; end RSpec.configure do |c| c.include Furter::Navigation, :navigation => true end describe Furter::Navigation, :navigation => true do let(:screen) { double('navigation screen') } before(:each) do NavigationScreen.should_receive(:new).and_return(screen) end it 'returns the screen that was asked for' do on(NavigationScreen).should be(screen) end it 'cares about active? if you do' do screen.should_receive(:active?).and_return(true) on(NavigationScreen) end it 'gives you your object when it is ready' do screen.should_receive(:call_me) on(NavigationScreen) do |s| s.call_me end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
furter-0.0.3.3 | spec/lib/furter/navigation_spec.rb |
furter-0.0.3.2 | spec/lib/furter/navigation_spec.rb |
furter-0.0.3.1 | spec/lib/furter/navigation_spec.rb |