spec/integration/create_gist_spec.rb in geet-0.3.1 vs spec/integration/create_gist_spec.rb in geet-0.3.2
- old
+ new
@@ -16,12 +16,12 @@
STR
actual_output = StringIO.new
VCR.use_cassette('create_gist_public') do
- described_class.new.execute(
- tempfile.path, description: 'testdescription', publik: true, no_browse: true, output: actual_output
+ described_class.new(out: actual_output).execute(
+ tempfile.path, description: 'testdescription', publik: true, no_browse: true
)
end
expect(actual_output.string).to eql(expected_output)
end
@@ -33,11 +33,11 @@
STR
actual_output = StringIO.new
VCR.use_cassette('create_gist_private') do
- described_class.new.execute(
- tempfile.path, description: 'testdescription', no_browse: true, output: actual_output
+ described_class.new(out: actual_output).execute(
+ tempfile.path, description: 'testdescription', no_browse: true
)
end
expect(actual_output.string).to eql(expected_output)
end