Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: f94d0b38cd
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (35 sloc) 1.138 kB
require 'rspec'
require 'action_view'
Dir.glob(File.join(File.dirname(__FILE__), 'extensions', '*.rb')).sort.each do |f|
require f
end
require File.join(File.dirname(__FILE__), 'active_record', 'setup_ar.rb')
require File.join(File.dirname(__FILE__), '..', 'lib', 'apn_on_rails')
Dir.glob(File.join(File.dirname(__FILE__), 'factories', '*.rb')).sort.each do |f|
require f
end
configatron.apn.cert = File.expand_path(File.join(File.dirname(__FILE__), 'rails_root', 'config', 'apple_push_notification_development.pem'))
RSpec.configure do |config|
config.before(:all) do
end
config.after(:all) do
end
config.before(:each) do
end
config.after(:each) do
end
end
def fixture_path(*name)
return File.join(File.dirname(__FILE__), 'fixtures', *name)
end
def fixture_value(*name)
return File.read(fixture_path(*name))
end
def write_fixture(name, value)
File.open(fixture_path(*name), 'w') {|f| f.write(value)}
end
def apn_cert
File.read(File.join(File.dirname(__FILE__), 'rails_root', 'config', 'apple_push_notification_development.pem'))
end
class BlockRan < StandardError
end
Jump to Line
Something went wrong with that request. Please try again.