1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00
pry--pry-rails/spec/railtie_spec.rb

16 lines
403 B
Ruby

# encoding: UTF-8
require 'spec_helper'
require 'rails/commands/console'
describe PryRails::Railtie do
it 'should start Pry instead of IRB and make the helpers available' do
mock(Pry).start
Rails::Console.start(Rails.application)
assert RR.verify
%w(app helper reload!).each do |helper|
TOPLEVEL_BINDING.eval("respond_to?(:#{helper}, true)").must_equal true
end
end
end