Skip to content

#557 [Ruby 2.5] Update specs to use frozen_error_class for FrozenError - #568

Merged
eregon merged 1 commit into
ruby:masterfrom
Atul9:frozen_error_class
Dec 20, 2017
Merged

#557 [Ruby 2.5] Update specs to use frozen_error_class for FrozenError#568
eregon merged 1 commit into
ruby:masterfrom
Atul9:frozen_error_class

Conversation

@Atul9

Copy link
Copy Markdown
Contributor

closes#557

@Atul9
Atul9force-pushed the frozen_error_class branch 2 times, most recently from eb2bd4b to 1ba2331CompareDecember 19, 2017 05:17
@Atul9Atul9 changed the title #557 Update specs to use frozen_error_class for FrozenError#557 [Ruby 2.5] Update specs to use frozen_error_class for FrozenErrorDec 19, 2017

@eregoneregon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Comment threadoptional/capi/object_spec.rb Outdated

it "raises a RuntimeError if the object passed is frozen" do
lambda { @o.rb_obj_taint("".freeze) }.should raise_error(RuntimeError)
it "raises a FrozenError if the object passed is frozen" do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be #{frozen_error_class}

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. I have updated the PR.

Comment threadoptional/capi/object_spec.rb Outdated
describe "rb_check_frozen" do
it "raises a RuntimeError if the obj is frozen" do
lambda { @o.rb_check_frozen("".freeze) }.should raise_error(RuntimeError)
it "raises a frozen_error_class if the obj is frozen" do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be #{frozen_error_class}

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. I have updated the PR.

Comment threadoptional/capi/array_spec.rb Outdated
end

it "raises a RuntimeError if the array is frozen" do
it "raises a FrozenError if the array is frozen" do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be #{frozen_error_class}

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. I have updated the PR.

@eregoneregon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@eregon
eregon merged commit 8079e3d into ruby:masterDec 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Ruby 2.5] FrozenError

2 participants

@Atul9@eregon