Skip to content

Commit

Permalink
Fix failing test_load_bad_lens (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehansper authored Jul 31, 2024
1 parent f42dfd6 commit 706f466
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tc_facade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def test_load
end

def test_load_bad_lens
aug = aug_create(:no_load => true)
aug = aug_create(:no_load => true, :no_modl_autoload => true)
aug.transform(:lens => "bad_lens", :incl => "irrelevant")
assert_raises(Augeas::LensNotFoundError) { aug.load }
assert_equal "Can not find lens bad_lens", aug.error[:details]
aug.load
assert_equal "Can not find lens bad_lens", aug.get("/augeas/load/bad_lens/error")
end

def test_transform
Expand Down

0 comments on commit 706f466

Please sign in to comment.