|
81 | 81 | let(:context) { 123 } |
82 | 82 |
|
83 | 83 | it "raises with correct message" do |
84 | | - expect { subject }.to raise_error(Rabarber::InvalidArgumentError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
| 84 | + expect { subject }.to raise_error(Rabarber::InvalidContextError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
85 | 85 | end |
86 | 86 | end |
87 | 87 | end |
|
198 | 198 | let(:roles) { [:admin] } |
199 | 199 |
|
200 | 200 | it "raises with correct message" do |
201 | | - expect { subject }.to raise_error(Rabarber::InvalidArgumentError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
| 201 | + expect { subject }.to raise_error(Rabarber::InvalidContextError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
202 | 202 | end |
203 | 203 | end |
204 | 204 | end |
|
401 | 401 | let(:create_new) { true } |
402 | 402 |
|
403 | 403 | it "raises with correct message" do |
404 | | - expect { subject }.to raise_error(Rabarber::InvalidArgumentError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
| 404 | + expect { subject }.to raise_error(Rabarber::InvalidContextError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
405 | 405 | end |
406 | 406 | end |
407 | 407 | end |
|
467 | 467 | let(:context) { 123 } |
468 | 468 |
|
469 | 469 | it "raises with correct message" do |
470 | | - expect { subject }.to raise_error(Rabarber::InvalidArgumentError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
| 470 | + expect { subject }.to raise_error(Rabarber::InvalidContextError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
471 | 471 | end |
472 | 472 | end |
473 | 473 | end |
|
525 | 525 | end |
526 | 526 |
|
527 | 527 | it "raises with correct message" do |
528 | | - expect { subject }.to raise_error(Rabarber::InvalidArgumentError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
| 528 | + expect { subject }.to raise_error(Rabarber::InvalidContextError, "Expected an instance of ActiveRecord model, a Class, or nil, got 123") |
529 | 529 | end |
530 | 530 | end |
531 | 531 | end |
|
0 commit comments