Sha256: 15c78bcfa1086ca26a9397c794133931a23fe778b1e20af17bd5300778284740

Contents?: true

Size: 472 Bytes

Versions: 12

Compression:

Stored size: 472 Bytes

Contents

describe 'The main window' do
  it 'launches with a welcome message' do
    note = Note.new
    note.text.should include('Welcome' )
    note.exit!
  end
  
  it 'exits without a prompt if nothing has changed' do
    note = Note.new
    note.exit!
    note.should_not have_prompted
  end
  
  it 'prompts before exiting if the document has changed' do
    note = Note.new
    note.type_in "changed"
    note.exit!
    note.should have_prompted
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
win_gui-0.1.6 old/wnote_spec.rb
win_gui-0.1.6 lib/note/java/note_spec.rb
win_gui-0.1.4 lib/note/java/note_spec.rb
win_gui-0.1.4 old/wnote_spec.rb
win_gui-0.1.3 lib/note/java/note_spec.rb
win_gui-0.1.3 old/wnote_spec.rb
win_gui-0.1.2 lib/note/java/note_spec.rb
win_gui-0.1.2 old/wnote_spec.rb
win_gui-0.1.1 old/wnote_spec.rb
win_gui-0.1.1 lib/note/java/note_spec.rb
win_gui-0.1.0 exp/old/wnote_spec.rb
win_gui-0.1.0 lib/note/java/note_spec.rb