Sha256: f91874b4db796aa3cb468a46286942f3bfffafdb6c8425ced5251c433e0f3866
Contents?: true
Size: 540 Bytes
Versions: 5
Compression:
Stored size: 540 Bytes
Contents
# typed: false # frozen_string_literal: true require './spec/spec_setup' require 'lib/frontman/helpers/app_helper' require 'lib/frontman/config' describe AppHelper do subject do Class.new do include AppHelper end.new end it 'should be in build mode if :mode config is set to build' do Frontman::Config.set(:mode, 'build') expect(subject.build?).to eq true end it 'should be in serve mode if :mode config by default' do Frontman::Config.set(:mode, nil) expect(subject.serve?).to eq true end end
Version data entries
5 entries across 5 versions & 1 rubygems