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
2012-09-23 15:28:49 -07:00

22 lines
501 B
Ruby

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