Skip to content

Commit

Permalink
Remove version check
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jun 6, 2021
1 parent cf8c8b5 commit c9184e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/support/shared_examples/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,7 @@

it "allows to freeze a container so that nothing can be registered later" do
container.freeze
error = RUBY_VERSION >= "2.5" ? FrozenError : RuntimeError
expect { container.register(:baz, "quux") }.to raise_error(error)
expect { container.register(:baz, "quux") }.to raise_error(FrozenError)
expect(container).to be_frozen
end

Expand Down

0 comments on commit c9184e4

Please sign in to comment.