Skip to content

Commit 1f81f51

Browse files
authored
Remove warning for non spcific raise (#990)
fixes #786
1 parent f7c1fe3 commit 1f81f51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/controllers/mediaflux_info_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
end
1111

1212
it "gets the mediaflux information" do
13-
expect { get :index, format: "json" }.not_to raise_error(Mediaflux::SessionExpired)
13+
expect { get :index, format: "json" }.not_to raise_error
1414
expect(response.body).to eq(docker_response).or eq(ansible_response)
1515
end
1616

spec/models/mediaflux_status_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
it "reports that the status is not OK" do
2121
status = described_class.new
22-
expect { status.check! }.to raise_error
22+
expect { status.check! }.to raise_error(StandardError)
2323
end
2424
end
2525
end

0 commit comments

Comments
 (0)