spec/integration_spec.rb in bugsnag-5.3.3 vs spec/integration_spec.rb in bugsnag-5.4.0
- old
+ new
@@ -26,11 +26,13 @@
ENV['BUGSNAG_TEST_SERVER_PORT'] = server.config[:Port].to_s
task_fixtures_path = File.join(File.dirname(__FILE__), 'fixtures', 'tasks')
Dir.chdir(task_fixtures_path) do
system("bundle exec rake test:crash > /dev/null 2>&1")
end
- expect(request["events"][0]["metaData"]["rake_task"]).not_to be_nil
- expect(request["events"][0]["metaData"]["rake_task"]["name"]).to eq("test:crash")
+
+ result = request()
+ expect(result["events"][0]["metaData"]["rake_task"]).not_to be_nil
+ expect(result["events"][0]["metaData"]["rake_task"]["name"]).to eq("test:crash")
end
it 'should send notifications over the wire' do
Bugsnag.configure do |config|
config.endpoint = "localhost:#{server.config[:Port]}"