spec/yajp_spec.rb in danger-yajp-0.1.0 vs spec/yajp_spec.rb in danger-yajp-0.1.1
- old
+ new
@@ -120,10 +120,10 @@
end
# rubocop:enable Naming/VariableNumber
it 'can add remote link' do
pr_title = 'PR Title'
- pr_json = '{"html_url":"https://github.com/test/pull/1234"}'
+ pr_json = { 'html_url' => 'https://github.com/test/pull/1234' }
url = "#{ENV['DANGER_JIRA_URL']}/rest/api/2/issue/WEB-134/remotelink"
json = File.read("#{File.dirname(__FILE__)}/support/remotelink.json")
issue = plugin.api.Issue.build
allow(issue).to receive(:key_value).and_return('WEB-134')