Skip to content

Commit

Permalink
fix application model test
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jan 31, 2024
1 parent 43081da commit b005e88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/models/application_model_test.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require "test_helper"

class OIDC::BaseModelTest < ActiveSupport::TestCase
class ApplicationModelTest < ActiveSupport::TestCase
make_my_diffs_pretty!

context "with an uninitialized object" do
setup do
@model = OIDC::BaseModel.allocate
@model = ApplicationModel.allocate
end

should "inspect as not initializee" do
Expand All @@ -19,23 +19,23 @@ class OIDC::BaseModelTest < ActiveSupport::TestCase

context "with no attributes" do
setup do
@model = OIDC::BaseModel.new({})
@model = ApplicationModel.new({})
end

should "inspect" do
assert_equal "#<OIDC::BaseModel >", @model.inspect
assert_equal "#<ApplicationModel >", @model.inspect
end

should "pretty_inspect" do
assert_match(/#<OIDC::BaseModel:0x[0-9a-f]+>/, @model.pretty_inspect)
assert_match(/#<ApplicationModel:0x[0-9a-f]+>/, @model.pretty_inspect)
end

should "compare equal to itself" do
assert_equal @model, @model.itself
end

should "compare equal to a copy" do
assert_equal @model, OIDC::BaseModel.new({})
assert_equal @model, ApplicationModel.new({})
end
end
end

0 comments on commit b005e88

Please sign in to comment.