spec/uptimerobot_spec.rb in uptimerobot-0.1.5 vs spec/uptimerobot_spec.rb in uptimerobot-0.1.6
- old
+ new
@@ -113,26 +113,26 @@
expect(client.getMonitors(params)).to eq response
end
context 'when include escaped string' do
- let(:escaped_string) do
- 'http monitor (basic auth)'
- end
-
- let(:unescaped_string) do
- 'http monitor (basic auth)'
- end
-
let(:response_with_escaped_string) do
res = response.dup
- res['monitors']['monitor'][0]['friendlyname'] = escaped_string
+ monitor = res['monitors']['monitor'][0]
+ monitor['friendlyname'] = 'http monitor (basic auth)'
+ monitor['keywordvalue'] = '(keywordvalue)'
+ monitor['httpusername'] = '(httpusername)'
+ monitor['httppassword'] = '(httppassword)'
res
end
let(:response_with_unescaped_string) do
res = response.dup
- res['monitors']['monitor'][0]['friendlyname'] = unescaped_string
+ monitor = res['monitors']['monitor'][0]
+ monitor['friendlyname'] = 'http monitor (basic auth)'
+ monitor['keywordvalue'] = '(keywordvalue)'
+ monitor['httpusername'] = '(httpusername)'
+ monitor['httppassword'] = '(httppassword)'
res
end
it do
client = uptime_robot do |stub|