Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Feb 14, 2023
1 parent 80873d7 commit 6950cee
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/lib/cable_ready/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ class CableReady::ConfigTest < ActionView::TestCase
assert_includes CableReady.config.operation_names, :jazz_hands
end

test "sets on_new_version_available" do
assert_equal :ignore, CableReady.config.on_new_version_available

CableReady.configure do |config|
config.on_new_version_available = :warn
test "shows on_new_version_available notice" do
assert_output(nil, %{NOTICE: The `config.on_new_version_available` option has been removed from the CableReady initializer. You can safely remove this option from your initializer.\n}) do
CableReady.configure do |config|
config.on_new_version_available = :ignore
end
end

assert_equal :warn, CableReady.config.on_new_version_available
assert_output(nil, %{NOTICE: The `config.on_new_version_available` option has been removed from the CableReady initializer. You can safely remove this option from your initializer.\n}) do
CableReady.config.on_new_version_available
end
end
end

0 comments on commit 6950cee

Please sign in to comment.