spec/sparkle_spec.rb in motion-sparkle-0.0.2 vs spec/sparkle_spec.rb in motion-sparkle-0.0.3

- old
+ new

@@ -11,11 +11,13 @@ before do unless @completed_setup teardown_temporary_directory setup_temporary_directory + FileUtils.mkdir_p(temporary_directory + 'resources') + FileUtils.touch(temporary_directory + '.gitignore') @config = App.config @config.project_dir = temporary_directory.to_s @config.instance_eval do sparkle do @@ -67,8 +69,13 @@ end it "should create public certificate" do puts @config.sparkle.public_key_path.to_s File.exist?(@config.sparkle.public_key_path.to_s).should.equal true + end + + it "should add files to gitignore" do + a = `cat .gitignore` + a.strip.should.not.equal '' end end