Skip to content

Commit c7a2731

Browse files
JudahmeekAbanoubGhadban
authored andcommitted
attempt dynamic constant
1 parent f1ef900 commit c7a2731

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/react_on_rails/packer_utils_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require_relative "spec_helper"
4-
require "shakapacker"
54

65
module ReactOnRails
76
describe PackerUtils do
@@ -45,7 +44,7 @@ module ReactOnRails
4544
before do
4645
allow(described_class.packer).to receive(:dev_server).and_return(
4746
instance_double(
48-
::Shakapacker::DevServer,
47+
(ReactOnRails::PackerUtils.packer)::DevServer,
4948
running?: true,
5049
protocol: "http",
5150
host_with_port: "localhost:3035"

0 commit comments

Comments
 (0)