ruby on rails - Notifications not working with Test::Unit on Mac -


i've got rails project test suite uses test::unit. i'm trying set guard , spork run tests automatically , fire notifications on pass/fail; guard , spork running fine, , fire notification when start up, can't test notifications work. i've tried using both growl , mac os x notifications terminal-notifier-guard.

here's relevant part of gemfile:

group :test   gem 'sqlite3'   gem 'selenium-webdriver'   gem 'rr', :require => false   gem 'capybara'   gem 'database_cleaner'   gem 'timecop' end  group :test, :development   gem 'guard'   gem 'spork'   gem 'spork-testunit'   gem 'guard-test'   gem 'guard-rake'   gem 'guard-spork'   gem 'terminal-notifier-guard', :require => false   gem 'rb-inotify', require: false   gem 'rb-fsevent', require: false   gem 'rb-fchange', require: false end 

and test_helper.rb:

# -*- encoding : utf-8 -*- require 'rubygems' require file.expand_path('../../config/environment', __file__) require 'rails/test_help' require 'spork'  spork.prefork   require 'rubygems'   env["rails_env"] = "test"   require 'capybara/rails'   require 'database_cleaner'   require 'rr'   require 'ostruct'   require "#{rails.root}/test/test_support"    class actioncontroller::testcase     include devise::testhelpers     def teardown       super       timecop.return     end   end    class actiondispatch::integrationtest     self.use_transactional_fixtures = false     include capybara::dsl     capybara.default_driver = :selenium     databasecleaner.strategy = :truncation      def setup       super       databasecleaner.clean     end      def teardown       super       databasecleaner.clean       timecop.return     end      def login_admin(admin=nil)       admin = admin.create!(:email => "super_badass@wickedawesome.com", :password => "sloppy") if !admin       visit "/admins/sign_in"       fill_in "admin_email", :with => admin.email       fill_in "admin_password", :with => admin.password       click_on "log in"       admin     end   end end  spork.each_run   # code run each time run specs.  end 

i'm @ loss. appreciated.

i've been fighting same problem months , fixed morning. used trying gem growl suggested in other answer, morning found in documentation suggest try ruby_gntp first , use growl if have problems.

change gemfile use gem ruby_gntp

ensure have growl v.>=1.3

add line top of guardfile:

notification :gntp, :sticky => true, :host => '127.0.0.1' 

and clicked in place me. had make sure growl active on machine, not installed. have v.2.0.1 app store launch @ start up. hope helps!


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -