Skip to content

Commit d7459a1

Browse files
authored
Merge pull request #268 from petems/run_transpec
Transpec changes to spec
2 parents 579f0b3 + bbd6b0e commit d7459a1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: spec/cli/destroy_cli_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
with(headers: { 'Accept' => '*/*', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization' => 'Bearer foo', 'Content-Type' => 'application/json', 'User-Agent' => 'Faraday v0.9.2' }).
100100
to_return(status: 200, body: fixture('show_droplets'), headers: {})
101101

102-
$stdin.should_receive(:gets).and_return('n')
102+
expect($stdin).to receive(:gets).and_return('n')
103103

104104
expect { cli.destroy('example.com') }.to raise_error(SystemExit)
105105

Diff for: spec/cli/info_cli_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
with(headers: { 'Accept' => '*/*', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization' => 'Bearer foo', 'Content-Type' => 'application/json', 'User-Agent' => 'Faraday v0.9.2' }).
153153
to_return(status: 200, body: fixture('show_droplet'), headers: {})
154154

155-
$stdin.should_receive(:gets).and_return('0')
155+
expect($stdin).to receive(:gets).and_return('0')
156156

157157
cli.info('examp')
158158

Diff for: spec/cli/info_image_cli_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
with(headers: { 'Accept' => '*/*', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization' => 'Bearer foo', 'Content-Type' => 'application/json', 'User-Agent' => 'Faraday v0.9.2' }).
126126
to_return(status: 200, body: fixture('ubuntu_image_9801951'), headers: {})
127127

128-
$stdin.should_receive(:gets).and_return('0')
128+
expect($stdin).to receive(:gets).and_return('0')
129129

130130
cli.info_image('ubun')
131131

Diff for: spec/middleware/inject_client_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
it 'loads the client into the environment' do
1515
described_class.new(app).call(env)
1616

17-
env['barge'].should be_a Barge::Client
17+
expect(env['barge']).to be_a Barge::Client
1818
end
1919

2020
it 'creates a client with values from config file' do
21-
Barge::Client.should_receive(:new).with(hash_including(access_token: 'foo'))
21+
expect(Barge::Client).to receive(:new).with(hash_including(access_token: 'foo'))
2222

2323
described_class.new(app).call(env)
2424
end

0 commit comments

Comments
 (0)