Skip to content

Commit 8e34610

Browse files
committed
Fix(specs): Correct path for gem in spec
The dummy extension is being created in `tmp/solidus_test_extension`, which is two, not three folders above the working directory.
1 parent fc9b4f3 commit 8e34610

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

spec/features/create_extension_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@ def check_create_extension
9696

9797
def check_bundle_install
9898
cd(install_path) do
99-
open('Gemfile', 'a') { |f| f.puts "gem 'solidus_dev_support', path: '../../..'" }
99+
open('Gemfile', 'a') { |f| f.puts "gem 'solidus_dev_support', path: '../..'" }
100100
end
101101

102-
expect { bundle_install }.to raise_error(command_failed_error, /invalid gemspec/)
103-
104102
# Update gemspec with the required fields
105103
gemspec_path = install_path.join(gemspec_name)
106104
gemspec = gemspec_path.read.lines
@@ -139,9 +137,7 @@ def check_run_specs
139137

140138
def check_sandbox
141139
cd(install_path) do
142-
# rubocop:disable Lint/InterpolationCheck
143140
command = 'bin/rails-sandbox runner "puts %{The version of SolidusTestExtension is #{SolidusTestExtension::VERSION}}"'
144-
# rubocop:enable Lint/InterpolationCheck
145141

146142
first_run_output = sh(command)
147143
expect(first_run_output).to include("Creating the sandbox app...")

0 commit comments

Comments
 (0)