Skip to content

Commit

Permalink
Fixed test warnings [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Dec 4, 2020
1 parent 16abfe4 commit a1e4c0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.warning = false
t.warning = false # for carrierwave and shrine
end

task default: :test
Expand Down
4 changes: 2 additions & 2 deletions test/model_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def test_previous_versions_key
email = "test@example.org"
key = User.lockbox_attributes[:email][:previous_versions][0].fetch(:key)
box = Lockbox.new(key: key, encode: true)
user = User.create!(email_ciphertext: box.encrypt(email))
User.create!(email_ciphertext: box.encrypt(email))
assert_equal email, User.last.email
end

Expand All @@ -669,7 +669,7 @@ def test_previous_versions_master_key
master_key = User.lockbox_attributes[:email][:previous_versions][1].fetch(:master_key)
key = Lockbox.attribute_key(table: "users", attribute: "email_ciphertext", master_key: master_key)
box = Lockbox.new(key: key, encode: true)
user = User.create!(email_ciphertext: box.encrypt(email))
User.create!(email_ciphertext: box.encrypt(email))
assert_equal email, User.last.email
end

Expand Down

0 comments on commit a1e4c0a

Please sign in to comment.