Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spec: should not export when no notes to export ;)

  • Loading branch information...
commit 3defae6a1118746c1fab005b1fbc07d347ece3fc 1 parent 9804669
@banister authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/test_pry_note.rb
View
9 test/test_pry_note.rb
@@ -264,6 +264,15 @@ def ping
end
end
+ it 'should not export when there are no notes' do
+ cleanup_file("bing.yml") do
+ Pry.config.notes_file = "bing.yml"
+ @t.process_command "note export"
+ o = File.exists?(Pry.config.notes_file).should == false
+ Pry.config.notes_file = nil
+ end
+ end
+
it 'should export to specified file' do
cleanup_file("blah.yml") do
@t.process_command "note add PryNote::TestClass -m 'my note1'"
Please sign in to comment.
Something went wrong with that request. Please try again.