PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/spec/rails_best_practices/core/check_spec.rb

http://github.com/flyerhzm/rails_best_practices
Ruby | 17 lines | 13 code | 3 blank | 1 comment | 0 complexity | 63de56e955534f65a10eeb89d2a9074d MD5 | raw file
 1# frozen_string_literal: true
 2
 3require 'spec_helper'
 4
 5module RailsBestPractices::Core
 6  describe Check do
 7    let(:check) { described_class.new }
 8
 9    context 'debug' do
10      it 'is debug mode' do
11        described_class.debug
12        expect(described_class).to be_debug
13        described_class.class_eval { @debug = false }
14      end
15    end
16  end
17end