Sha256: a832ec55872bee5fe29d1cab5b146b35a86a2056410aa3976084aabb2814a333
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
require "spec_helper" module Rails def self.root File.dirname(__FILE__) end end describe EnoughFields do before :all do User.create(:login => 'flyerhzm', :email => 'flyerhzm@gmail.com', :first_name => 'richard', :last_name => 'huang') User.create(:login => 'richard', :email => 'richard@gmail.com', :first_name => 'richard', :last_name => 'huang') User.create(:login => 'test', :email => 'test@gmail.com', :first_name => 'test', :last_name => 'test') end it "should" do EnoughFields.enable = true EnoughFields.growl = true EnoughFields.start_request Thread.current[:monit_set] = EnoughFields::MonitSet.new p User.all.collect(&:email) # User.all.to_a if EnoughFields.notification? EnoughFields.perform_out_of_channel_notifications end EnoughFields.end_request end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enough_fields-0.0.1 | spec/enough_fields/enough_fields_spec.rb |