Sha256: 80f4fe3ab88feb970e6702a028aeeb8ae1843096f5c3f06dbd42d599db7e2936

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

# typed: false
# frozen_string_literal: true

require './spec/spec_setup'
require 'frontman/app'
require 'frontman/concerns/forward_calls_to_app'

describe Frontman::ForwardCallsToApp do
  let(:subject) do
    Class.new do
      include Frontman::ForwardCallsToApp
    end.new
  end

  it 'should forward missing method calls to App' do
    app = Frontman::App.instance
    expect(app).to receive(:non_existent_method)

    subject.non_existent_method
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
frontman-ssg-0.1.1 spec/frontman/concerns/forward_calls_to_app_spec.rb
frontman-ssg-0.1.0 spec/frontman/concerns/forward_calls_to_app_spec.rb
frontman-ssg-0.0.4 spec/frontman/concerns/forward_calls_to_app_spec.rb
frontman-ssg-0.0.3 spec/frontman/concerns/forward_calls_to_app_spec.rb
frontman-ssg-0.0.2 spec/frontman/concerns/forward_calls_to_app_spec.rb