Skip to content

Commit 1955993

Browse files
committed
acceptance test fixes
1 parent 6b5ed49 commit 1955993

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

spec/acceptance/emit_json_options_spec.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
require 'spec_helper_acceptance'
44

55
describe 'Emitting JSON' do
6-
before(:all) do
7-
let(:test_module_path) do
8-
sut_module_path(%r{Module test})
9-
end
6+
let(:test_module_path) do
7+
sut_module_path(%r{Module test})
8+
end
109

11-
let(:remote_tmp_path) do
12-
remote_tmp_path
13-
end
10+
let(:remote_tmp_path) do
11+
remote_tmp_path
1412
end
1513

1614
let(:expected) do

spec/acceptance/generate_markdown_spec.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
require 'spec_helper_acceptance'
44

55
describe 'Generating Markdown' do
6-
before(:all) do
7-
let(:test_module_path) do
8-
sut_module_path(%r{Module test})
9-
end
10-
11-
let(:remote_tmp_path) do
12-
remote_tmp_path
13-
end
6+
let(:test_module_path) do
7+
sut_module_path(%r{Module test})
8+
end
9+
10+
let(:remote_tmp_path) do
11+
sut_tmp_path
1412
end
1513

1614
expected = <<-EOF

spec/acceptance/running_strings_generate_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
include PuppetLitmus
55

66
describe 'Generating module documentation using generate action' do
7+
let(:sut_work_dir) do
8+
PuppetLitmus::PuppetHelpers.run_shell('pwd').stdout.chomp
9+
end
10+
711
before :all do
812
# TODO: Linux only
9-
let(:sut_work_dir) do
10-
PuppetLitmus::PuppetHelpers.run_shell('pwd').stdout.chomp
11-
end
12-
1313
test_module_path = sut_module_path(%r{Module test})
1414
PuppetLitmus::PuppetHelpers.run_shell("puppet strings generate \"#{test_module_path}/**/*.{rb,pp}\"")
1515
end

0 commit comments

Comments
 (0)